IMAQ FFT of a color image

 In LABVIEW 2011 Is there a way to do an IMAQ FFT on a color image? The only thing that seems to work is on gray scale images. When I try to use a color RGB(U32) image, the FFT vi errors out with "Invalid ImageType".
Any suggestions?
 Thanks in advance.
Solved!
Go to Solution.
Attachments:
Resolution Decrease.vi ‏46 KB

 Thank you for the prompt reply Daniel.
 What we are attempting is a de-resolution of a hi resolution image to simulate what a 1-4 reduction in resolution using a fiber optic taper will look like to a customer without having to built a very expensive actual optical system. If it proves to be an acceptable resolution, then we can move forward. The point is we need a fiberoptic imaging system due to environmental issues prevernting having an actual camera up close to the work being inspected.
 So the idea is to convert the image to an FFT, remove any frequency component above the resolution we would see through the optical magnification, then recreate the image via a reverse FFT. Does that sound feasible or is there a simpler method of simulating a lowering of the resolution of an image? We can work on the gray scale image, as I believe this will prove acceptable for our demonstration. If color is required, we can talk about splitting up the color planes.
 Warm regards,
 Randy

Similar Messages

  • Problem using IMAQ Array to Color Image vi

    I am doing some pixel manipulation & while going from an image to an Image Pixels (U64) array using IMAQ Color Image to Array VI I cannot see the image once it is modified.
    I am...
    1) converting the image to the 64 bit pixel data using IMAQ ColorImage to Array.vi
    2) doing the manipulation
    3) converting back to an image using the IMAQ Array to ColorImage.vi using the 64 bit input.
    What I get is...
    1) a black image with data behind it... meaning... if I take the magnifier tool and go to the approximate locations of my image where I expect to find the manipulated data, it is there.
    2) cast that image to a 32 bit image & still get a black image for the output.  The data however is no longer there and appears to have been stripped.  
    3) no error's out of any VI's...
    TIA  

    With Vision 2009 situation is not better.
    It happened because U64 image displayed in full scale. So, if you have full range of intensities (from 0 to 65535), then you can see something. But if your intensities in small range, for example, 0...255 in all channels, then you will see black image.
    Feel differences:
    It should be possible to map U16 values into U8 display range  with given range (like IMAQ WindDisplay Mapping does), but right now this feature available for I16 images only, not for U64. What you can do is following - map each channel to U8 (with linear LUT, for example), put channels together, then display 32 bit RGB instead of U64.
    Andrey.

  • How to overlay color image over a grayscale image without IMAQ?

    I would like to display a color image over a grayscale image; I would like the color image look translucent. How would I do this without using IMAQ functions? I am currently displaying my grayscale image using Intensity Graph.

    > I would like to display a color image over a grayscale image; I would
    > like the color image look translucent. How would I do this without
    > using IMAQ functions? I am currently displaying my grayscale image
    > using Intensity Graph.
    Transparency and overlays are really just arithmetic on the images. It
    is either done by the windowing system or by you. At the moment you
    can't set transparency on LV controls. You can set it on LV floating
    windows on some OSes, but then you will need to have the windows lined up.
    A more direct approach is to lighten or darken the color image elements
    based upon whether they will display over white, black, or a shade of
    gray. If the images don't have the same size pixels, this will have a
    first step of resampling th
    e images so they do. Then combine the pixels
    using the transparency you were going to apply to the color and the
    shade of gray beneath it. I'm being vague here because there are lots
    of physical models for combining colors.
    If I look in my paint program I see about fifteen, so this is where you
    get to make a choice and decide if black behind a red pixel is black, or
    dark red. It all depends on whether these are two transparent
    images(acetate sheets) backlit, or is it a transparency over a
    nontransmitting media like paper. Anyway, if you can be more specific
    about what you want, none of this is hard, typically just scaling the
    int32s, adding, and some sort of normalization.
    Greg McKaskle

  • IMAQ FFT destination image, help!

    Hello,
    I am new to using LabVIEW so please bear with me!
    I am reading/working my way through the IMAQ user manual for LabVIEW and I am trying to get IMAQ FFT working.  But I have trouble finding the VI that the destination image of IMAQ FFT VI should be connected to. At the second it gives me an error when I try and run the program.
    At the second I am really struggling to find the correct VI
    Also I am little unclear what the destination image is for, does the image need to be saved?
    Many thanks,
    Jack

    Hi,
    For IMAQ FFT Destination Image should be connected and must be complex:
    Andrey.
    PS
    Forum for Vision-related questions here
    Message Edited by Andrey Dmitriev on 01-28-2009 12:52 PM
    Attachments:
    FFT Sample.png ‏24 KB
    FFT Sample.vi ‏41 KB

  • How to save output image after IMAQ-FFT to the file

    When I apply IMAQ FFT on monochromatic image and display complex destination image by IMAQ WindDraw, I get picture which I am not able to save to the file. I tried various conversions from complex image to bitmap (array), but result was everytime different from that got by IMAQ WindDraw.
    I thank for any help.

    Hallo Filip,
    you cannot save Complex Image to file to be readable by other programs - see link: http://digital.ni.com/public.nsf/websearch/D557B1A79C30AD5F86256AB1006A678A?OpenDocument
    What you can do is convert Complex Image to 8-bits BMP file format and save it then. This question was answered already - see example at: http://sine.ni.com/apps/we/niepd_web_display.display_epd4?p_guid=B45EACE3ECED56A4E034080020E74861&p_node=DZ52000_US&p_source=External
    Hope this helps
    Pavel

  • Problem of acquiring color image

    Now I try to acquire color image but show in grayscale real time with filter it before. The result is so slow on monitor. How can I do to acquire the filter image faster.Any help very appreciated.

    First make sure that you have the most efficient kind of aqusition running.IMAQ LL Ring Without Timeout is the most efficient continous aquisition scheme I know of.
    The you must make sure that your conversion and filetering code is efficient. As far as conversion is concerned make sure and use the extract color plane VI and extract the luminance plane. This is the fastest way to do color to gray scale. You can play around with Vision Builder and the Script>>Performace Meter Option until you get a filtering script which is faster than your frame rate.
    Hopoe this help,
    Amaury Rolin
    NI Applic
    ations Engineer

  • IMAQ FFT processing

    Hi,
    Does anyone know if the IMAQ FFT automatically pads images to 2^n
    dimensions or if you have to do it yourself?
    My manuals do not tell me if it can accept any size of image or not.
    Using Labview 7.0 and 7.1.

    My VI
    Attachments:
    Untitled 1.vi ‏35 KB

  • Display a color image in front panel.

    Hi there,
    How do I display a color image in front panel? Which graphic indicator should be used to display a color image? I do not want to use Imaq WindDraw.
    Thanks in advance.
    Hugh

    Try this "draw flatten jpg to pic ctrl.vi"
    Ian F
    Since LabVIEW 5.1... 7.1.1... 2009, 2010
    依恩与LabVIEW
    LVVILIB.blogspot.com
    Attachments:
    draw_flatten_jpg_to_pic_ctrl.vi ‏35 KB

  • How to use "IMAQ ComplexPlaneToImage"? (Display after "IMAQ FFT")

    Hello,I use two ways to display a image after "IMAQ FFT":
    (1). Input a image->IMAQ FFT->Windraw(display);
    (2). Input a image->IMAQ FFT->IMAQ ComplexPlaneToImage(extracting magnitude) ->Winddraw(display).
    The two results are much different.
    I want to know what the two displayed images(especially in the second way) mean and where
    "IMAQ ComplexPlaneToImage" usually used.
    Thanks for your help!

    Hi Dan
    I am having some questions regarding the FFT Phase of the FFT with IMAQ ComplexPlaneToImage.
    From the posting below you mention that the phase is:
    Phase = Real/Magnitude.
    I am using the function ComplexPlaneToArray to see the value I am getting from ComplexPlaneToImage.
    Usually the phase is the inverse tangent  (Imaginary/Real). If we are using the Real and magnitude it will be the inverse cos(Real/Magnitude)
    I tried the above senario to verify the phase value we are getting from ComplexPlaneToArray.
    However, I get not get the value you are displaying in the phase  (ComplexPlaneToArray).
    How can I verify  ComplexPaneToArray ( phase) with the various
    ComplexPaneToArray(real)
    ComplexPaneToArray(magnitude)
    ComplexPlaneToArray(imaginary)
    I attached a phase fft.vi as an example of my issue.
    Regards,
    Corinne
    Attachments:
    phase fft.vi ‏153 KB

  • How to use a grayscale color model in converting a colored image

    how to convert a colored image into grayscale using :
    ColorSpace cs = ColorSpace.getInstance(ColorSpace.CS_GRAY);
    int bits[] = new int[] {8};
    ColorModel cm = new ComponentColorModel(cs, bits, false, false,
    Transparency.OPAQUE,
    DataBuffer.TYPE_BYTE);
    please only this method , i don't need the "bandcombine" method cause i need to know that i have exact 256 grayscale colors, thanx in advance.

    I went into mail preferences in the first place. I found the fonts and colors and picked the color I want but it doesn;t seem to be sticking?

  • I am able to get color images in the continues shot but when i try to snap a color image which i need for my processing i get only a monocrome image

    I have been using lv_vfw.llb VI's for grabbing images from a CREATIVE WEB CAM ,i am able to get color images in the continues shot but when i try to snap a color image which i need for my processing i get only a monocrome image ,i have been trying to play around with the RGB weightings but i am unable to get a color iamge,it shall be of great help if you could help me in doing this as it is urgent for me.Thanks for your help.

    vicky,
    I am unfamiliar with the lv_vfw.llb, and have not used it before. However, I noticed that you stated that you are able to grab in color, just not snap in color. If this is the case, why not just perform a grab and then extract a single buffer from this grabbed data, which would likely be in color? This seems like a possible solution to the issue that you are seeing.
    Other than that, I really don't know enough about the lv_vfw.llb to be of much help on this issue. Hopefully another member of this forum will be able to assist you with this software.
    Regards,
    Jed R.
    Applications Engineer
    National Instruments

  • How to find out embedded raster image is Black&White or Color image?

    Is there any possibility to find out the embedded raster image is Black&White, Gray image (or) Color image in "illustrator cs3" without using color mode shown in "document info" pannel. Kindly advice me, the possibilities and solution. And also any scripts avilable for this?
    Thanks.

    Or you could select the embedded image, and open the Window>Document Info panel. Select Embedded Images from the fly out menu on the Document Info panel. This should give you the color mode and more info on the embedded file in question.

  • Bridge displays color images as b&w

    I assume this has something to do with settings in Bridge CS4, my platform is MacBook Pro OS 6.8.10.
    This question might confuse some people. To beging with, I do shoot my images in RAW files, I even have Bridge convert them to DNG files.
    Upon download the images are displayed in color as they should be for RAW files. After editing images in Camera RAW,  I convert most all images to sRGB. When some of those edited images come back to Bridge, they might be presented in B&W, though no color is lost to the file upon displaying in Photoshop, and I did not edit the file to be a B&W image. I have DNG, Canon RAW, Tif and Jpeg files, and most of these are displayed in color, but some are not, and I have not figured out the missing link just yet. So to be clear, I have Jpeg color images, displaying as b&w images, but they are color images. Only b&w images should be displayed as b&w.
    This problems started once I learned I could edit one image in photoshop out of a series of images, then after editing, i could bring the single photo file back to bridge, and then copy/paste image settings onto a groups of images in Bridge, and all those images would then have the same adjustments made to them as a batch edit adjustment.
    But now sometimes I get a B&W display on some images even when I do not apply a Bridge settings edits, and when I never edited the image for a B&W display.  I has to a setting somewhere in Bridge, and I just have not figured it out yet.
    Thanks in advance for all suggestions:

    ssprengel wrote:
    Yammer asked a pertinent question that remains unanswered—is that “settings” badge (small lines-triangles-in-a-circle) shown on the B/W image thumbnails (at least).  If you’re not sure, then include a screenshot of a few Bridge thumbnails where some are color and some are B/W, using the little camera icon on the web version of the forum messages.
    And the answer is NO!. I only have those showing up associated with the .DNG files (Camera RAW)
    Another similar question would be if you see a B/W thumbnail in Bridge, try doing a right-click (or whatever the Mac equivalent is) and choose Open in Camera Raw.  Is the image in B/W or color in Camera Raw.
    A <Control Click> (on MAC), opens the .jpeg file in b&w, as shown in the thumbnail.
    Can you upload three versions of one of the images that display as B/W:  the original PSD/raw/TIF file, a normal Save As JPG that is in color, and a Save For Web JPG that is B/W?  Use something like http://www.dropbox.com/ and post a public download link to the images, here.
    NO, I thought I explained that real well. Only the .jpeg file that was saved through the "Save for Web" processing ( that is, the a jpeg the goes through greater compression to reduce image file size for web display), is the image file process that produces the b&w thumbnail in Bridge ONLY. All opened images, of various file formats (ie: DNG, Psd, Tif, Jpeg, & Jpeg for Web), all present Color presentations (for editing in Photoshop, and or in display browsers). It is only the thumbnail of that particular jpeg formatting processing for Web Images that produces the b&w image "THUMBNAIL" in Bridge.
    When you Save As JPG or For Web, are you ever overwriting the original image with a new one or do you always save the PS-edited image with a new name?
    No, never. I leave my RAW files, as RAW originals, and work on newly names images files.
    A theory about what is happening is that Bridge uses Camera Raw to generate its thumbnails, and the images that are B/W have some embedded Camera Raw setting, perhaps pasted from a different filetype, that makes CR think the image should be rendered as B/W, but when you open the images on Photoshop, you are opening them directly, without using the Camera Raw plug-in, so any embedded settings are ignored, and the image displays in its original state without the settings having been applied.
    It makes since, (what you are saying), and it certainly does respond in that fashion. Your suggestion to open Ctrl Click, or Right Click to open the thumbnail in Camera RAW, was an interesting test, and the response was to open the previously save color image with a b&w thumbnail, into Camera RAW as a b&w image. So Camera RAW is responding to what is in the xmp settings that describes this images thumbnail to be displayed b&w. It is weird that a browser does not.
    As to what is in the window selections for the "Save for Web" editing windows, Presets for jpeg are :
    Progressive
    Optimize
    Embed Color Profile
    And I use Embed Color Profile.
    Even the Preview button at the bottom of the window, shows the color image as displaying color.
    I vaguely remember about a year ago doing some CS 4 Photoshop and Bridge web tutorials from an unnamed tutoring website and guy named D_k_ . It is his fault. Just kidding, I actually enjoy those tutorial.
    **** Okay, this is perhaps originating from Camera RAW presets, where you can apply previously made settings to other images and then saved them as Presets. Though I don't have this checked in Camera RAW ( still something goofy is going on there), I did find that in Bridge I can reset the individual "saved for Web" image thumbnail back to the the color image by :
    Right Click  (Ctrl Click, MAC) on the thumbnail
    menu down to the "Development Settings" and select :
    "Previous Conversion", and this presents the color thumbnail.
    I have now tested all the Camera RAW settings in Camera RAW, by opening an image in each one of these :
    Image Settings
    Camera RAW Defaults
    Previous Conversion
    Custom Settings
    and then reducing image file size, and saving for the web, while changing file name, and each and every one of these Settings produces a Sepia Toned thumbnail. I found out the images were a subtle Sepia Toned image by enlarging the Bridge Thumbnails bigger for a better view. So I can correct the thumbnail after it has been created, but so far, I can't get the thumbnail to be correct on first creation of the web saved jpeg image file. Regular jpeg image file thumbnails save correctly.

  • Convert color images to black&white bitmaps

    Hi,
    I have black&white scans of public domain books (image format). I use an OCR software to convert them to indexable PDFs (image+text format). However, the OCRed PDFs are insanely big: a 27 MB scanned PDF leads to an indexable PDF of 728 MB! And unfortunately, my OCR software doesn't have output settings, so I have to find a way to compress the files using Adobe Acrobat 9 Pro.
    Using Advanced Options > Optimization does reduce the file size, but not significantly. The problem seems to be that my OCR software converts the black&white scans to color images, and encodes them as such inside the PDF. So I need a way to set the image modes back to black&white. I tried using the Advanced Options > Preflight dialog, and selecting "Convert to black&white". However, the resulting PDFs stay about the same size! It seems that "Convert to black&white" converts the images to grayscale, instead of to bitmap.
    Any help would be appreciated!

    I mentioned "bitmaps", because when I open the original PDF and right-click a random page and select "Modify image..." and open the image in Photoshop, the mode is set to "Bitmap mode": meaning 1-bit mode, containing either black or white pixels. However, when I do "Modify image..." for the OCRed PDF, the mode is set to "RGB Color Mode". I think this explains, in part, the huge size of the OCRed PDF.
    Maybe this table will make it more clear:
    Original PDF (Bitmap Mode, 132 dpi)
    Size: 27 MB
    OCRed PDF (RGB Color Mode, 300 dpi)
    Size: 728 MB
    Now, from the table above, it's clear that I have to reduce the image resolution. So, using the Acrobat's PDF optimizer, I tried the following settings:
    Optimized OCRed PDF: Try 1 (Downsample to 132 dpi, JPEG compression)
    Size: 733 MB
    Optimized OCRed PDF: Try 2 (Downsample to 132 dpi, ZIP compression)
    Size: 449 MB
    But 449 MB is still huge for a single book. And I don't want to reduce the resolution under 132 dpi, because I will loose quality. Clearly, if the original document is just 27 MB, I should be able to squeeze the OCRed document too. But I don't know how.

  • Oracle Reports - Unable to generate report with colored image in bitmap mod

    Hi,
    I am using Oracle reports 6i.
    I am generating a post script[.ps] file using bitmap mode.
    The layout contains an image. The image is stored in oracle database which is colored image.
    But when the report is generated same is being generated with gray color.
    Could any one advise on resolving this issue? The objective is to generate the report with colored image and not gray or black&white

    What kind of images do you have? Reports only supports a few formats, e.g. JFIF. So, if you have JPG images with EXIF meta information in the header, you have to remove those first.
    when the report is generated same is being generated with gray color.What happens if you sent the output directly to the printer?
    And what happens if you create a PDF file instead of Postscript?

Maybe you are looking for

  • Why did photoshop cc 2014 install separately so i lost all my plugins installations ?

    hallo, i have installed photoshop cc on desktop and laptop and when cc 2014 came, instead of replacing previous one, it made a separate app. so i needed to reinstall lot of plugins (topazlabs, niksoftware, ononesoftware, alienskinsoftware,... br marc

  • The underlying provider failed on open

    Hi all, I use the following Save method for the context so that I first insert the entities so that I have their identity column, then save the audit log for them. public int Save() int recordsUpdated = 0; List<History> historyList = new List<History

  • Recording short videos to post to website

    i would like to record short videos directly into my computer of one person at a time talking directly into the camera, edit these videos, and post to my website. it would be great to be able to add short bits of music, but not essential. i do a fair

  • Preferences for font style can't be changed

    Hi there, I have been trying to set the font in preferences to use a different fonts for new mails. However, the settings will not be saved. Is there any way to do that? Andreas

  • Using Login Scripts with OD

    Has anyone had success using login scripts from OD? When I try to add a script to the login prefs, i get an error that the script is not executable. Alternately, could anyone suggest an effective way to mount volumes based on user group membership? I