How do I find the image type of an image file

This was posted on the LabView forum in error yesterday,  Please excuse the dual post.
I am trying to open a JPEG image.  If I do not know the image type (8U, 16I, GrayscaleSingle, ... etc)... is there a way to find out that information?
If you open the file using IMAQ ReadFile...you have to supply a Create Image input to allocate space...the input specifies a type to read...but if the type of the stored data is not the type specified in the read file you either read the file as the type specified, or the file does not produce any values...(and no error is produced).
Examples:
Store a JPEG as a Single Percision Floating point image.
Use a Creat File to specify that the file is read with the following types...with the following results
Type Specified        Type Read         Resulting image
U8                               U8                     8 bit image appears
16I                               16I
Solved!
Go to Solution.

Hummer1,
There are two methods to accomplish this:
1) IMAQ GetFileInfo, which has quite a few outputs involving the image details.
2) Read JPEG File, which you can unbundle the image data output to get the image depth, or other attributes.
I would reccomend the IMAQ function, due to it being more detailed.
Hope this helps
Chris Van Horn
Applications Engineer

Similar Messages

  • In Mountain Lion, how do I find the location of an open Preview File?  The file "properties" tab is no longer available.

    I typically have several open Preview files at any one time and often forget where, sometimes if, I saved them.  In Mountain Lion, how do I find the location of an open Preview File?  Tried holding option + command in spotlight but I don't see a path name appear anywhere. 

    Yes, cmd-option on a file you choose in Spotlight and the path will appear at the bottom of the Preview window.
    EDIT: Also, if it is bookmarked the path is in Bookmarks.

  • JS - How do I Find the MIME type of a Link?

    I need to be able to find the MIME type of a linked item in InDesign. Is there a simple way to do this?

    @Peter – Indesign CS5.5 v7.5.3 on OSX 10.6.8:
    app.placeableFileTypes:
    sDnI, sMdI, dDnI, 3dDI, 4dDI, 5dDI, 6dDI, 7dDI, 2dDI, t5DI, t6DI, t7DI, t2DI, 3DCI,
    5xCI, 2xCI,  3PM, EVAW, WALU, FFIA, LV4F, LVLF, LFWS, GEPM, aGPM, vGPM,
    xGPM, , VooM, xcod, 8SLX,  FTR, NB8W, NBDW, xslx, TXET, txtu, TXET, FSPE, PSPE,
    TXET, FTCP, PTCP, TCIP, FFMW, PFMW, TXET,  FDP, fGNP, SPB8,  XCP,  PMB,
    ELR, fFIG, TC.., FFIT,  1PT, GEPJ, FIFJ, GPJp
    app.placeableFileExtensions:
    inds, idms, indd, indt, incd, incx, icml, mp3, WAV, WAVE, AU, AIF, AIFF, F4V,
    MP4, FLV, SWF, MPG, M15, M1A, M1V, M64, MP2, MPA, MPM, MPV, M1S, M75,
    MPEG, AVI, MOV, docx, xls, rtf, doc, doc, xlsx, txt, utxt, TXT, EPS, AI, TRP, DCS,
    PMG, PCT, PIC, WMF, EMF, joboptions, pdf, pdp, PNG, PSD, PDD, PCX, PCC,
    BMP, RLE, GIF, SCT, CT, TIF, TIFF, TP1, JPG, JPEG, JPE
    Note:
    empty array element between "xGPM" and "VooM"
    first blank in " 3PM", " FTR", " FDP", " XCP", " PMB", " ELR" and " 1PT"
    and the two dots in "TC.."
    Uwe

  • How do I find the codec used for a .mov file?

    I have a .mov file from 2001 that I can't play. How do I find the correct codec to use for this. Is there somewhere in the file itself some kind of reference to the codec used? I've installed pretty much everything I could find in terms of codecs. I don't care whether on mac or windows. Just need the right codec.
    Thorbjørn Vynne

    Still no luck
    If anybody out there wanna give it a try please download this clip
    http://mhp.tv2nord-digital.dk/fileadmin/resources/thor/dv-00.27.04.11-V180.mov
    If you can play it please please let me know with which codec.... I have a whole bunch of files with this codec I need to use
    Best regards
    Thorbjørn

  • How do you find the number of lines in a file?

    I need to count how many lines there are in a file, I am using a BufferedReader to read in the data, but how can I find the number of lines?
    Thanks

    That depends. How do you define a line? Is it a specific number of
    characters, a String that's terminated by a newline character or some
    combination thereof?

  • How do I find the creation date of a pdf file when the user did not enter one (doesn't show up in properties)?

    I can't find the stamp in properties, etc.. does not show up. I do not know how to otherwise get the date. This is Version 1.4  (Acrobat 5.x) DPE build 5095

    The data is not there at all. My mention of hidden metadata (perhaps confusing) is to emphasise that there IS NO hidden metadata, because that would be a Bad Thing.

  • How do I find the path to a TestStand sequence file using LabVIEW

    My LabVIEW application launches a bunch of teststand sequences, provided it has the complete path to each of them. I want to make it more flexible by providing it just the name of the TestStand sequence so that it will go and find the path to the sequence by searching a directory structure. TestStand has a neat FindFile() function that can do this, but I need to do this from within LabVIEW. Is there a way to do it?

    There are a few ways to do this depending on how you are getting the sequence files.  If you are calling the GetSequenceFileEx method, you can just pass the GetSeqFile_FindFile (0x20) flag in the SequenceFileFlags property.  If you are using the ApplicationMgr.OpenSequenceFile method, this is automatically done for you.
    If you want to use the FindFile function in general, you can use the Engine.FindFile method.
    Allen P.
    NI

  • How do I find the pull down bar that shows File-View-Bookmarks-History etc on FF 3.6.6

    Downloaded FF 3.6.6 However I don't see the pull down task bar that shows File-View-Bookmarks-Tools etc. How do I find this?

    Hit the '''Alt''' key to show the Menu bar, then open View > Toolbars and select Menu bar, so it has a check-mark.

  • How do I find the password to unlock iphone backup file?

    I upgraded to 5.0 and when trying to restore it asks for the backup file password. What is this? I have tried my apple id password and Itunes password and it doesn't work? I have nothing on my phone right now.

    You may have an encrypted backup. If you don't know the password, your data may be lost on that backup.
    But, there is another way.
    If you have multiple backups, shift-click restore from backup, and I believe you should get a menu listing your backups, I hope this helps you.
    You can try certain other backups and such to restore too, they may or may not be encrypted, if they are, then I suppose you're out of luck.
    If you find one of your backups that does not have encryption, you're good to go until you remember or retrieve your password.
    In this case, is this a lost or stolen iPhone? Counterfeit, brought off eBay, etc?
    If so then I cannot help you on that, nobody can.
    If you have a passcode lock set on your iPhone, unlock it first (to tell iTunes that you own the phone of course) then disconnect and reconnect if necessary.
    But like I said, if it's not your iPhone then we cannot help you. Sorry.

  • How do I find the width of an external swf file that I am loading in

    I have loaded in an external swf file and it works fine.
    However, when I get the width dimensions of the movieclip that is housing the external swf file it gives me a '0' for the width.
    Thanks for your time.

    you must wait until loading is complete before trying to access the loaded objects width.  at that point you can determine the width,height of the onstage/backstage objects in frame 1 of the loaded swf.

  • How to find the message type for application

    Hi Guys,
    while postnig the data through idocs,we use message types
    the issue is how can we find the massage type for application?
    plzz help

    You can find these in transaction WE82.
    You can find in WE57, this basis type, which fm is attached (BAPI_IDOC_INPUT1).
    Then check out transactions WE41 and WE42.
    You can use the table EDIMSG, in SE16 to list all the msg types making use of the same IDoc.
    or
    If you want to get all the message types, you can use WE81.
    If you want to see which message types are attched to a particular Idoc type, use WE82
    check it in BD60 and WE57..

  • How to Find the Latest Version of Cluster Binary Files available at Microsoft website

    How we can find the latest version of Cluster binary files available for download at Microsoft Website and which Cluster Binaries should be update to make the Cluster services stable healthy.

    @AnatolySV : I believe you need to put some efforts to understand what he is asking.
    You may find the latest version of Cluster Binaries by entering the required keywords for Microsoft Failover Clustering. Some of the main Cluster binaries(Keywords) are:-
    Clusres.dll (For Cluster Resources like Disk, Application or Service, Cluster IP)
    Clussvc.exe (Cluster Service)
    TCPIP.sys (If the Storage is presented to the cluster Nodes via ISCSI Network).
    MPIO.sys / ISCSIprt.sys (If we are using Multipathing for the disks to be presented).
    RHS.exe (Resource Host Subsystem)
    So, the Answer to your question is: You need to enter the binary name "Clusres.dll" and mention the Operating System you want to install your binaries to "Windows Server 2008 R2 Sp1" on Bing (Preferred for Microsoft Hotfixes). In Result you will get the
    list of hotfixes for clusres.dll
    You need to try this multiple times in order to get the latest version as Microsoft does not have a single Link.
    Hope this answers your query. Feel free to leave a message incase you need more help.
    Maybe) 
    But hey, you`ve got +1 from me for clarification) 
    Anyway, I still think that the initial question could be more clear and exact. 

  • How do I find the tempo of a audio file?

    How do I find the tempo of a imported audio file (stereo track song)
    in Logic Pro 7.

    my way is the old way.
    move your file to the end of the song. (make sure SPL is at the beginning of the region)
    open sample window.
    open tempo list.
    set new tempo and slide the tempo until you see the bar display at the top change position and the down beat of the audio file is underneath the next full bar.
    hope this makes sense.
    you might need to find the next down beat by listening to and then cutting the region at the down beat. that way when you open the saple editor it will be able to see where the down beat is.

  • How do i find the support chat ... where i type my question to a live apple support who types back to me.

    how do i find the apple support chat... where i type my question to a live apple support person and she types back to me live.  thank you   sandra  

    No such place.
    Online you can try the Express Lane.
    Otherwise you have telephone support with Applecare or these (user-to-user) forums.

  • How to find the Data Type of a column

    Dear All,
    How to find the Data Type of a Column dynamically in oracle Form.
    Thanks and Regards,
    Fazil
    Edited by: user11334489 on Aug 25, 2012 9:06 PM

    hi,
    you can use get_item_property built-in
    eg:
    declare
       l_item VARCHAR2(10);
    begin
       l_item := Get_Item_Property('item_name',DATATYPE);
    end;

  • Ram? how do i find the type that my macbook pro has?

    ram? how do i find the type that my macbook pro has?
    and whats the best brand to use?
    thanks
    also what kind of express cards addons are available for the macbooks?
    thanks again

    A_MaStA wrote:
    You simply take out and look on the ram chip(s), the manufacturer's name should be all over the chip(s).
    Not very helpful. Micron / Crucial makes maybe 2000 RAM types. If all you have is the RAM and the label you may be thin on luck.
    Reading the manual +*that came with the mac*+ is one resource, regrettably rarely used before posting here.

Maybe you are looking for

  • IPod Touch Volume doesn't work!

    My iPod Touch 4G's volume doesn't work! When I increse it, it decreases automatically or, It stays for a while & it gets on 0 again!! What do I doo?

  • One Time Vendor

    Hi All, I am trying to work out whether there is any standard functionality in SAP that will aid the control of one time vendor usage for the following areas. 1. During posting of an invoice against one time vendor account we would like to block the

  • My iPad 1 has stopped working after trying to instal iOS 5. Can you help restore?

    My iPad has stopped working after trying unsuccessfully to instal iOS5. All that's currently showing on the iPad screen is a white USB cable with a thick arrow pointing towards the iTunes logo (black double note within a white rimmed circle and a blu

  • My exported 2015 iMovie file has bad quality.

    Hello. I just got a new MacBook pro, OS X Yosemite 10.10.3.  Using iMovie 10.0.7 (the latest version to my knowledge.) I realize that this question has been beaten to death all over the internet, but I haven't made any headway STILL.  I just complete

  • SGA Max Size limit?

    Hi, I have Fujitsu mid range Server with 16gb RAM and 64 bit Windows Server 2003,10g R2 db installed, current i have SGA size 4gb.. What is SGA max size limit???? One of my report runs in 24 seconds...*will this issue b solved increasing the SGA size