Save 12 bit image as 12 bit image, not 16 bit

Hi all,
I have 12 bit gray scale images coming from a camera and am trying to save these images.
I called function "IMAQ Write to File 2" to do this job.
The function always scales the original data from 12 bit to 16 bit and then save it. 
In the end, I have a 16-bit tiff image.
Is there anyway that I can save my original 12 bit data without any scaling?
Thanks a lot for your information.

hi,
for every data you save, a specific data type is used...so for example 16 bit integers, 8bit integers... there's no datatype with a length of 12 bit, so this can't be done by "simple methods"...if your intention is to save hard disk space, then better use a compression or use tif-files with lzw-compression. if you really like to save 12 bit, you can do it like this: use for example 16 bit integers for saving, but only use 12 bit...the left four bits are used by the next integer and so on:
2 16 bit integers:
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1  -  1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 - ...
use them as follow:
     FIRST 12 BIT        SECOND 12 BIT         AGAIN 12 BIT
1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2     2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3
This will be a lot of calculation stuff, you can for example do it by converting a number to a bool array or mathematical functions...as you like
Hope this helps
christian
THINK G!! ;-)
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)

Similar Messages

  • Anychart save as pdf/image not working

    A while ago I posed this question when the right click, save as stopped working on my APEX charts
    Apex charts - right click, save as image (not responding)
    The problem resolved when anychart.com was back up, but the problem is occurring again and I wonder if they've moved their php files.  Not even in Hilary's sample app is working. We think this happened within the last month.
    After choosing save as image and a location, the "saving" just keeps spinning.
    Most anychart google results at the moment seem to revert to the same landing page, and webcached copies refer to locations that no longer exist.
    I wonder with post anychart7 cleanup, have they moved the supporting php files? For instance, this location no longer exists
    http://www.anychart.com/products/anychart/saveas/pdf/PDFSaver.php
    A workaround is to use a local copy of the php file with custom XML
      <settings>
        <pdf_export file_name="mychart.pdf" use_title_as_file_name="true" url="/i/AnyChart4_SaveAsPDF_php4/PDFSaver.php" image_type="jpg" />
    But I only have the PDFSaver, not the AnyChartPNGSaver.php
    This file no longer exists either:
    http://anychart.com/products/anychart/docs/users-guide/export_image_scripts/php.zip
    Does anyone know where I can source the png saver php, or suggest another workaround? Or have any other information on this issue.
    An email to [email protected] back in 2013 got no reply.
    APEX 4.2.0
    Scott.

    Hi Scott,
    So, if i understand properly, making this change
    <settings><pdf_export file_name="mychart.pdf" use_title_as_file_name="true" url="/i/AnyChart4_SaveAsPDF_php4/PDFSaver.php" image_type="jpg" />
    will avoid atleast PDF issue? And as i dont have privileges to install or deinstall anything on /i/ folder, still this will work and URL path will remain same for each installation?
    Adding another question, as you said "it sends base64 information when converting to PDF", does it mean i will not be able to convert to PDF, if i am using intranet and PC's not accessible to internet?
    Thanks
    Sunil Bhatia

  • How do I save an HDR image from Nik silver FX to a jpg in photoshop?

    How do I save an HDR image from silver FX to a jpg in photoshop. when I go to file - save as then option of a jpg does not come up?

    Since the hdr image is probably 32 bits/Channel, you would need to go to Image>Mode and choose either 16 or 8 bits/channel.
    Then in the HDR Toning dialog use the Exposure and Gamma Method with the Exposure set to Zero and Gamma set to One.
    Then you should be able to save out your image as a jpeg.

  • Why won't my trial of CC Photoshop let me save my PSD images as JPG or GIF?

    Why won't my trial of CC Photoshop let me save my PSD images as JPG or GIF?

    One thing to check is that your PSD is RGB/8 or /16, but not /32  (32 bits per channel)
    If that is not the problem
    Let's try this:
    Close Adobe Photoshop if it is opened.
    Find the following:   (windows user can hit windows key + r, then in run cmd line type "%appdata%" to locate your "AppData\Roaming" directory)
    \AppData\Roaming\Adobe\Adobe Photoshop CC\Adobe Preferences CC Settings
    Rename the  "Adobe Preferences CC Settings" folder to "Adobe Preferences CC Settings_old"  so that preferences settings can be recreated.
    Reopen Photoshop CC and open a new or existing file to verify that your "save for web" option is back and not grayed out.

  • What is the best format and resolution to save my logo images for Adobe Premiere 3.0 videos.

    Hello,
    I've had great success using this forum in the past and was wondering if someone could help me out. I save my logo images for my video as transparent PNG at 72 DPI (because i read an article that stated that 72 dpi was good) in Illustrator for my Premiere-edited videos, but they seem pixelated. See example at
    Can anyone tell me the best way to save it so that it is more crisp.

    XonoBoom,
    With PrPro, you CAN Import Layered PSD's. You will be given two choices, when you do: Import as Footage, with the Layers Flattened (the term for merging all Layers into one), or as a Sequence. Now, the latter has slightly different results, so you will want to explore this a bit more closely, and the Help File will be, well "helpful." The Layered PSD will come in as a Sequence, and in a Bin. The Bin will need to be twirled open, and from there, one can do all sorts of operations, such as Nest that Sequence into another, but for what I do (and what you might wish to do), you can just click+drag each Layer (they appear separately in the Project Panel), to Video Tracks, where they can be used in their order of creation, or can be moved about, as is required. One can add Effects, or adjust the Fixed Effects, such as Opacity, to each Layer individually. I do this for a lot of Titles, and just create those Images with Layers in PS. A little planning is required, in that creation, but once you get the hang of it, it will become second-nature.
    A variation from PS is the Layer Comp, which is useful for intricate animation. That "variation" is on the PS end of the process/workflow.
    Good luck, and if you do much work with graphics into your Video, I think that you will save a lot of time, plus have so many creative doors opened to you. Just spend a little time looking over the Import PSD as a Sequence, so you will understand what you are getting, what you are seeing and how to handle it. Many are not initially expecting a real Sequence, and worry about what to do with that.
    Hunt

  • What is "Save as Disc Image"

    What is this used for? I am having problems burning in iDVD. The computer freezes toward the end of encoding the video and I have read to "Save as Disc Image" first. Thanks
    Also, how do I tell if I camcorder is 14-bit or 16-bit audio?
    Thanks

    Save to Disk simply allows you to make a DVD without burning it to an actual disk, but a disk image. You can then open it using DiskOpener and play it in DVD Player and test to see it works. Also you can use it as an archive.
    I personally use this if I have any photo assets, as I have had issues and test the DVD this way before burning.
    The freeze at the end of the burn can be a natural affair. It depends on your computer speed etc. Sometimes it looks like it has frze, but looking in activity monitor shows it is still working. It can encode audio in this state, etc. The best thing to do is to start a burn before you go to bed. Leave the computer running and don't have any other applications open. OK

  • Dynamic pdf up to 200 images, the size of pdf is larger, cannot save data and images to the form

    Hi all,
    My client would like to dynamic images up to 200 pictures to my forms. It is working fine. However, when I add images up to 35 images. I could not add images to the form any more. Then, I save data on the form. All images and data typed on the form are disappeared. I don't know reason.
    If I only add 10 images - I can save data and images on the form. The size of pdf is 15456 kb.  I was unable to  add more pictures or data on the form.
    Maybe there are problem the size of pdf? How much size can an dynamic pdf  limited?
    Can we save the information and images as much as we want?
    I have spent 2 weeks to work and try to figure out this problem. However it is not successful.
    Please help,
    Cindy

    You should ensure, that your users do not import big images.
    Therefore you can use a script on the change event of an image field which checks the data size and warns the user if the file is too big.
    function formatNumber(number) {
        var num = number + '',
        x = num.split('.'),
        x1 = x[0],
        x2 = x.length > 1 ? '.' + x[1] : '',
        rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
            x1 = x1.replace(rgx, '$1' + ',' + '$2');
        return x1 + x2 + "KB";
    var sizeLimit = 200, //allow upto 200KB images
      thisSize = Math.round((this.value.oneOfChild.value.length * 3 / 4) / 1024);
    if (sizeLimit > 0) {
      if (thisSize > sizeLimit) {
      xfa.host.messageBox("Note: With " + formatNumber(thisSize) + " the size of the imported image is greater that the recommended maximum of " + formatNumber(sizeLimit) + ".\nLarge images can cause a insufficent performance.\n\nIf possible, use images with the following recommended specs:\nFormat:\t\tPNG or JPG\nColor depth:\t8 Bit (higher is not supported)\nColor space:\tRGB (CMYK is not supported)\nFile Size:\t\t" + formatNumber(sizeLimit), "Recommended image size exceeded", 3, 0);

  • Apple, please fix this bug.  Sending scanned images to "Pictures" is not what I want nor what I was able to do in every previous operation system.   I want to save all scanned items in a specific folder - NOT "PICTURES"  Please fix this bug NOW!

    Apple, please fix this bug.  Sending scanned images to "Pictures" is not what I want nor what I was able to do in every previous operation system.   I want to save all scanned items in a specific folder - NOT "PICTURES"  Please fix this bug NOW!

    I only use Image Capture, so I can't speak for other software.
    Here is how I select a Scan To destination:
    If you are using the minimal details screen, you should have the same submenu to the left of the page size.

  • I have created a 468x60 animated banner in Edge Animate. How do I save the animated image to my desktop? (not in html code)

    I have created a 468x60 animated banner in Edge Animate. How do I save the animated image to my desktop? (not in html code)

    Hi,
    This feature is not available in Adobe Edge animate. You can not export as image from Edge animate.
    Publish options available in edge describe here
    Edge Animate Help | Publish your content
    Regards,
    Devendra

  • How do i save STACKS of images (e.g. TIFF) as a SINGLE file in IMAQ?

    I would like to save stacks of images (movies and time series) as single files (TIFF in particular) but i can only find support in IMAQ for saving single images to single files. Does anyone know how to save STACKS? (As far as i know that is a common feature in most frame grabbers).
    I am using a PCI-1408 card for analog acquisition and NI-IMAQ driver in Windows 2000.

    Bernhard,
    There are no utilities in IMAQ to save image sequences in a single file.
    One possible solution, if you aren't trying to compress the images, is to extract the 2D array of pixel intensities and save them as a standard array. You would be able to store as many arrays as you want in a single file.
    If you want to compress the images, there are utilities for creating AVI files. I have used a wavelet compression utility that I wrote LV drivers for, also. If you are willing to spend a little money, that might be a good solution. You can contact me at bruce@ammonsengineering if you want to discuss it further.
    Bruce
    Bruce Ammons
    Ammons Engineering

  • How to save a drawn image in our own format

    hai,
    i'm developing a designing tool. in that user can draw any type of diagrams. i have to save the drawn image in my own extention... how can i do it. provide me some sample code if u can...

    mituli wrote:
    Thanks,
    but I am using Image.getScaledImage() to get scaled image(obviously). This returns an Image object. When I call getGraphics() on this object it throws an exception:
    Exception in thread "AWT-EventQueue-0" java.lang.UnsupportedOperationException: getGraphics() not valid for images created with createImage(producer) at sun.awt.image.ToolkitImage.getGraphics(ToolkitImage.java:292)Try using createGraphics() instead.
    In javadoc i found out that this method can be used only on off-screen image. What is off-screen image?Use BufferedImages, you'll have a lot less problems.
    Anyway I can't use this object in ImageIO.write because it requires RenderedImage object which can only be BufferedImage object.
    I tried to cast Image to BufferedImage but can't be ... If you need to get your Image painted onto a BufferedImage, you can do it like this:
    BufferedImage bi = new BufferedImage(myImageWidth, myImageHeight, BufferedImage.TYPE_INT_RGB);
    Graphics2D  g = bi.createGraphics();
    g.drawImage(myImage, 0, 0, null);

  • Error-29, Cannot burn a DVD or save a disc image from within FCPX using Mountain Lion

    Really stumped on this one.
    Running Mountain Lion, freshly downloaded version of FCPX, on a 2009 MacPro with 16 G RAM.
    Trying to share a 4 minute movie I edited.
    - No problem exporting as a quicktime move...worked fine
    - Big problem trying to either burn a DVD, save a disc image, or export to an Apple device.
    The progress bar gets about 90% complete, and then it stops and a message window comes up that says:
    There was an error burning your disc. The operation couldn't be completed. (DSPPublishing error-29)
    Thoughts?

    From Crash Analyzer:
    DSPPublishing error -29 (Final Cut Pro X)
    This error can occur when burning a disc if your menu has incompatible assets.
    Suggested Actions
    If your menu has a background image, make sure the image is not too large. Try reducing the size of the image and saving it as a JPEG or PNG.
    Report generated by Crash Analyzer in Pro Maintenance Tools

  • I'm using a Mac / Leopard. I can no longer "save as" an image. Please see the "details" section for more information. Thanks.

    I'm using a Mac / Leopard. Beginning about a month ago, I can no longer "save as" an image. The "Save Image As" menue comes up -- but then nothing. I can drag images onto the desktop, but that's it. I tossed out Firefox, and then downloaded it and reinstalled it, but have the same problem. (I couldn't figure out how to get rid of profiles and bookmarks -- so they remained). As I type this question on the Firefox website, I don't see the forum in front of me -- just a window to type a question. So, if you answer this question, I'm not sure I'll be able to find the answer. Thus, if you'd be so kind as to also email me the answer, that would be greatly appreciated: davidfreeman11 AT gmail.com Thanks

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 9.0 r124
    Update the [[Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • How do I save a webpage image to my hard drive to be printed later offline

    I am only able to go online from my laptop at a location away from my printer therefore I cannot directly print from a website to my printer. I need to save the webpage image to my hard drive to print offline at a later time

    It is probably best to install a print driver for that printer and use print to file to avoid losing content as that can happen if you save a page to disk.

  • I just got a new mac and use my external hard drive to save all my images to but whenever I go to save my photo to my hard drive it says I do not have write access....Whats wrong how do i fix this or do i need a new hard drive??

    I just got a new mac and use my external hard drive to save all my images to but whenever I go to save my photo to my hard drive it says I do not have write access....Whats wrong how do i fix this or do i need a new hard drive??@

    This is a Mac question not a Photoshop question, and I am a Windows users, but I can Google and this might be what you need to do:
    http://www.makeuseof.com/answers/change-read-permision-external-hard-drive-mac/

Maybe you are looking for

  • [svn:osmf:] 10137: Dynamic streaming unit tests now pass.

    Revision: 10137 Author:   [email protected] Date:     2009-09-10 16:01:37 -0700 (Thu, 10 Sep 2009) Log Message: Dynamic streaming unit tests now pass. Modified Paths:     osmf/trunk/framework/MediaFramework/org/openvideoplayer/net/dynamicstreaming/Ne

  • Shutting down a Swing program

    Hello, I developed a program which contains several JFrames. In every JFrame there's a Button "Exit Program", an I want my Java program to shut down completely by pressing this Button. Of course I can close each JFrame, but then there occurs the prob

  • Dependency detection for simulation of models including ucb block(s)

    Running sim() function for the models that include a ucb block will automatically invokes the make utility to build the required shared object "simucb.so.1.0". If the main C file (which is indicated by the block "file name" parameter) of ucb block is

  • Crystal Reports for SAP Print Output requirements like Sales Order O/P

    Hello, Has anybody used Crystal Reports for Sales Order or Invoice Print Output type requirements? Typically these outputs get triggered via Output Management Configuration on Save of a Sales Order or Configuration. Traditionally in the Output Manage

  • N8 Skype video calls

    Will Nokia come up with a solution to use the N8 to make videocalls using Skype? The apple iPhone is able to make such calls, can the N8 do the same,  or is it a problem with Symbian and  the Skype org. software dept.? If there is a solution to updat