Open 32-bit jpeg & convert to intensity graph form (LV8.5 & Vision 8.5)

I will cross-post this in the Machine Vision forum as
well.  I have an LLB to open images with IMAQ vision utilities, and
then attempt to convert to intensity graph format. I obtain the color
table of the image from a Vision utility, and subsequently apply to the
intensity graph in hopes of duplicating the vision container contents. 
I  am unsuccessful in converting 32-bit jpeg and was hoping for some
help.  Please let me know if this in fact is even possible to do. 
Attached is an example jpeg image file.
Sincerely,
Don
Attachments:
open_image_file_and_convert_to_intensity_graph1.llb ‏207 KB
Photo_111107_0021.jpg ‏240 KB

DonRoth wrote:
Hi George:
Yes - I understand I am getting only one color plane. 
With LabVIEW / Vision only, can this jpeg image be displayed in an intensity graph with the proper (original) color information? You say the LabVIEW Read Jpeg File.vi reads this image fine - but how do you display the output of this fx in an intensity graph with the original / proper color information (again using only LabVIEW / Vision, or maybe your toolkit)?
Unless it is an 8 bit color image already you can always down sample it to 8 bit. I think the IMAQ Cast function should do that, otherwise there is for sure some function to change color depth. Colors will of course change slightly as it is very unlikely that a 24bit image especially if it is a photo, has only 256 unique colors used.
Once you converted your IMAQ image into an 8 bit image extracting the bitmap and color dtable is easy and then applying it to an intensity graph of course too. Remains the question why you wouldn't want to use the IMAQ control. If it is about IMAQ license costs then of course you won't be able to use other IMAQ functions either so this advice won't help then.
Rolf Kalbemratter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions

Similar Messages

  • Change colors of individual pixels on intensity graph?

    I would like to be able to change the color of a set of individual pixels within an intensity graph, to blue for example, while leaving the color table otherwise as is, for example, gray scale.  The change to blue would be based on location, not on current gray value.  I think I can accomplish this using the mask fx with picture controls, and then convert to intensity graph.  Is there a more direct way?  A good example to demonstrate this capability would be just using a 'mouse down' event on an intensity graph to change the color at the mouse location.  Any thoughts are appreciated.
    Sincerely,
    Don

    Yes, seems to work fine .
    If you have LabVIEW 8.0, there is another possibility. There is a new property that allows drawing any pictures or picture elements on your graph area. Of course you could draw individual pixels, but nothing prevents you from e.g. drawing circles, squares, odd shaped areas, arrows or event text. ... Anything you could do with a plain picture indicator. One example that ships with LabVIEW 8.0 is Envelope.vi, see image.
    Message Edited by altenbach on 06-12-2006 07:31 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    envelope.png ‏32 KB

  • Convert 32 bit JPEG to 24 bit?

    MediaShout requires 24 bit JPEG files. How do I get there from Illustrator which I believe defaults to 32 bit?

    When you export the file as a JPG, make sure that the color mode is RGB in the export dialog

  • Image processing from .txt file onto an intensity graph

    I am doing a mini project in my class and I was wondering if anyone could help me. It about image processing but I am bit stuck.
    Heres the idea:
    "An image is really nothing more than a 2D array of data. The value of every element in the array corresponds to the brightness of the image at that point.
    In this project you will create a VI which loads a 2D array of data and then displays it on the screen using the Intensity Graph. Three example files (boats.txt, gordon.txt and parrot.txt) are available on the module webpage that you can use. However, you can also use any other black and white image you like, but will need to convert it to a “text image” first. To do this you can use some software called “ImageJ” which is available on the computers and is free to download.
    You can vary the brightness of an image by adding the same value to every element in the array.
    The contrast of an image is adjusted by multiplying every element in the array by the same value. Using numerical controls and simple array mathematics, you should adjust the brightness and contrast of your displayed image.
    Some other ideas that you could try with image manipulation are:
    o Invert an image (change black to white and white to black)"
    First I am having problems putting my picture onto the graph. It is in the write file but the colours are not correct and the image has rotated 90 degrees. I will upload my VI so far when I get back onto my computer.
    Would really appricate the help! Thank you for reading

    Hi charlthedancer,
    Here is an example to get you started.
    Kind regards,
    GajanS
    Attachments:
    Test.vi ‏14 KB

  • IN PSE11 can you save in 16-bit JPEG?

    IN PSE11 can you save in 16-bit JPEG?

    Of course, you can can convert a jpeg (=8 bits) image and save it as 16 bits in other formats than jpeg : especially PSD or TIFF.
    For that you have to use the ACR module : Open your 8 bits file with 'Open As', option 'camera raw' and in the bottom line menu of the ACR dialog, set the export option to 16 bits to open in the editor. From the editor you can save your image in one of the 16 bits compliant formats indicated in the above posts.
    Note that simply converting an 8 bits image into 16 bits does not add any new information. It is totally useless, unless your goal is to apply heavy editing where theoretically, you would gain some quality starting with 8 bits. Now, in my test, it has been extremely difficult to show the difference...
    When working with Elements, the main thing to remember is that the ACR module works internally in 16 bits and can be used for jpegs as well as raw files. That seems an unnecessary step for jpeg originals, but once you are used to it, you have a number of great advantages:
    - same proces that raw files if you use both input formats
    - easier and much better general corrections : white balance, exposure, highlight and shadow, clarity, denoising...
    - much quicker to correct bad exposures and white balance
    - ability to keep the same settings for the subsequent file to edit (impossible in the editor)
    - if you don't need to do further edits (in most cases) you can simply click 'Done' and your settings will be saved in the metadata section of the original files : the image pixels won't be changed and you'll save disk space because you don't need to save an 'edited' copy of the file. The non destructive 'conversion' is the same as in Lightroom : the original is kept and only the editing instructions are saved.
    I would say that in my own situation, the ACR plugin is the main software for most pictures, and the editor with layers, masks, filters and local tools is the accessory 'add-on' in most of my edits

  • In PSE 13, when I open a folder, jpeg files have a preview image, but PSD, DNG and CR2 files don't. Also, no thumbnail below the file list.

    Working in PSE 13, when I open a folder, jpeg files have a preview image, but psd files just have white sheet of paper as preview.  I have to open the file to be able to see it.  Also, there is no thumbnail of the file below the file list.Surely, there's a setting that needs to be changed. I did not have this problem with Elements 12. This is a real bother because I have to use Lightroom to see all the file types. It seems as if Elements is using the standard Windows file loader that can't show previews of file types it doesn't know including .PSD, DNG and CR2. Is that a bug or did I do something wrong? Thanks for any help.

    I am using Windows 7 64 bits. Working in the editor, I never use the organizer. The screen above is not the same at all that I got in Elements 12, it was completely different and showed me a thumbnail below the listing when I single clicked on one of the files. In Elements 12, I also could see  a thumbnail of all the file types, not only the jpegs. It is as if the loader is the regular Windows used anywhere, not the right one for Elements. I hope someone understands my problem.. Thanks.
    Mike

  • Most efficient way to extract the amplitude of a signal and display on an intensity graph

    Hi All,
    I am having difficulty to display the amplitude of an voltage signal (voltage picked up by NI DAQ card).
    what I am trying: Voltage signal (Dynamic data type)--> 2D array of dynamic data type (using 2 nested for loops) --> normal 2D array with scalar values --> intensity graph
    I have difficulty to convert the dynamic 2D array to scalar 2D arry.
    I only want to extract the amplitude of the imcoming signal.. any body can give some advice? thanks in advance..
    Charlie

    Hi Hillary,
    Thanks for your reply.
    Yes, I did tried to use Amplitude and Levels Express vi, it should be the one I am looking for, but I found it not work in my case, I need to put the value of amplitudes into a 2D array.
    If I use Amplitude and Levels Express vi, it will give me a 3D array, I have found the solution, just convert the dynamic data to single scalar. (see pic attached)
    Anybody can help me to solve the following 2 problems:
    1. The speed of this program is too low, i think ii due to the DAQ assistant in the 2 for loops (for creating 2D array), it should be able to re-write using DAQmx (as "centerbolt" told me), I am working on this now, if anybody can help, I will appreciate that.
    2. Is there any other way to creat the 2D array (for purpose of increasing speed also).
    Thanks,
    Charlie

  • I have used the write jpeg file from intensity but image colours are different

    Here are the relevent files for my program.
    Insert these values
    x1=218
    x2=368
    y1=45
    y2=45
    r=39 in order to run adn crop the pictures
    I hope someone can help
    Attachments:
    218_368_45_39.jpg ‏23 KB
    2ColourProgram.llb ‏355 KB

    Hi,
    I'd suggest you to use PNG format to save the images of your intensity graphs. You get sharper images than JPEG format.
    I made some modification to your program to save PNG files, anyway you can try to save in JPEG and see the difference.
    Alberto
    P.S. I removed the delay of 100ms from the final Equation with kl fator.vi, the speed is much increased.
    Attachments:
    2ColourProgram.zip ‏176 KB

  • 8 bit jpeg files in Aperture 3?

    Can I save my images as 8 bit jpeg files in Aperture 3? If so, how? Thank you!

    I'm not sure about Aperture, can;t test it right now, but iPhoto 9.4.1 is exporting jpgs as 8 bit regardless of the import format.
    I exported both an imported JPG and and imported RAW file and both were exported as 8 bit according to Preview
    Notice the value by the Depth entry, 8.
    If you have the latest Aperture and iPhoto you could continue to use Aperture but then open the library in iPhoto to export it.
    This of course assumes that Aperture is not exporting JPG's as 8 bit.
    That is easy enough to check. Just look as an exported JPG from Aperture in Preview and see what the depth value is.
    regards

  • BCG Brightness Contrast Gamma - Looking for BCG function returning color table / lookup table coded in pure G and applicable to Intensity Graph or Picture Control

    Looking for BCG function returning color table / lookup table coded in
    pure G and applicable to 8-bit Intensity Graph or Picture Control. Do
    not want to use IMAQ Vision is this particular application.  Any
    help is appreciated.
    Sincerely,
    Don

    Take a look at this color model software I put together.  (Don't concern yourself much with the basic programming at this point.). The color component generator subVI is borrowed from a LabVIEW example.
    First look at test_color2.vi.  If you adjust the sliders of the various controls, you will see how it works.  You can see that for pure B&W images, brightness, contrast, and gamma (which I think I have coded correctly) are all fairly straightforward to modify.
    Now look at test_color3.vi.  Here we try to adjust BCG for color images using the color model shown here where current color component clusters are carried into the BCG event cases via shift registers.  You can see that once color is introduced into the image, it becomes difficult to mix the colorizing with the BCG model.  And this is pretty much where I am right now.
    Would be interested in comments / suggestions.
    Sincerely,
    Don
    Attachments:
    test_color2.llb ‏2251 KB

  • Setting intensity graph to blinking causes LV2012 to crash

    Hi,
    This VI crashes when setting blinking to TRUE, using LV2012, Win7 32 bit. I saw that this was a bug in 2004 , hasn't it been fixed yet? Or am I missing something obvious?
    Thanks,
    Danielle
    "Wisdom comes from experience. Experience is often a result of lack of wisdom.”
    ― Terry Pratchett
    Solved!
    Go to Solution.
    Attachments:
    testBlinking.vi ‏16 KB

    Yup, still broken LV2013SP1.
    I'm not making any excuses for non-action, but I would image that blinking an intensity graph isn't something they get a lot of complaints about...
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Single pixel formation in Intensity graph

    I needed to capture a image using CCD camera. Though it has 16 bit resolution, i need to focus on ONE PIXEL.
    The process goes like this. Save the image information in a spread sheet array and then find the max value of the array. Till this step, i am OK.
    But how do i get to display this MAX value using intensity graph??
    Intensity graph is 2D array which needs X and Y value.
    So I need to get the X and Y value of the max value of array. I tried using the max index value of 'Max and Min' array function. But it is of no use since the value comes as 1Dimension but the intensity graph needs 2D information in the form of X and Y value. 
    Please help me on this. Thanks in advance.

    Asking the same question in multiple threads does not help or get you an answer more quickly.  Please be patient.  Many of us who participate in the Forum do so as volunteers.
    Now to your question.  As you noted, you can use the Array Max & Min function to locate a pixel with the maximum value.  If more than one pixel has that value, this function only reports the first occurrence of that value.  The 1D output of the Array Max & Min function contains the indexes of the pixel.  So the first element would be the row index (X value) and the second element would be the column index (Y value).   What I do not understand is why you want to display just one value on an intensity graph.  That seems rather meaningless.  Please explain what you want the output to look like.
    Lynn

  • Merge a intensity graph to a Serial write/read

    Hey.
    I am doing my bachelor in Labview, and are using a arduino 2560 as a microcontroller for a thermal sensor.
    After many attempts on connecting the arduino to labview using LIFA.BASE I get connection sometimes, and sometimes not.
    I tried the Serial write and read program on the forum, and got much better reliability.
    I would like to use VISA, instead of Arduino int.vi
    I was hoping I could change the Serial write and read(removing the string) with putting an intensity graph in it?
    I have added the bachelor program along with the Serial write and read, can someone please help me??
    Attachments:
    bachelor_2013.vi ‏259 KB
    Modded Advanced Serial Write and Read_test.vi ‏40 KB

    There is the Simple Serial Write Read example.  That should get you started with talking over a serial port with VISA.
    It seems like you have an array of bytes that you need to send.  You just use the Byte Array To String to convert directly into a string and send it.  For reading, there is the String To Byte Array that you can use to start parsing your data.
    Show us what you have so far.  Be sure to include any sample data you may have and expected results.  Things get really confusing when stating ASCII and Hex since people can interpret that in 10 different ways.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Control grid intensity graph

    Hi,
    I want to control the grid of an intensity graph to be exactly spaced by "1"... How to do?
    See attached example in LV8.5. Start with default values and you get grid lines with spacing of 1.
    Now change "size" to 15 and run again. Gridlines are now spaced by 0.5. Size=10 -> spacing of 0.2, size=4 -> spacing=0.1 ...
    I want to have a spacing of 1 regardless of size parameter! How to achieve this?
    Btw. I need both major and minor grid, as array size can grow to more than can be handled by major grid alone...
    Message Edited by GerdW on 02-26-2008 03:09 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    Test_Grid_LV85.vi ‏16 KB

    Hi Simon,
    thanks for clarification.
    To summarize: major increment has to be bigger than minor and you have to set them both...
    Scale labelling is not so important for me, but it would be nice to have each number when space is sufficient (in the example vi for sizes upto 15). It seems I have to change my graph formatting a little bit: make minor grid transparent when not needed (for small sizes) and switch gridlines on, when scale space is not sufficient to show all numbers...
    In the attached example pic (today's measurement of pressure sensor wafer ) I use the gridlines to separate single chips. And I always want to separate single chips regardless of array size (=wafer/chip) - which can vary from 10 to ~80...
    Message Edited by GerdW on 02-26-2008 05:26 PM
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome
    Attachments:
    grid-example.png ‏27 KB

  • Region of Interest (ROI) on Intensity Graph

    Hello,
    I hope somebody can help me.  I have read the other posts available regarding choosing ROIs on intensity graphs but they don't really answer my question.
    I am taking a series of still images.  Having stored the image as an array and displayed it on the intensity graph, I need some way of selecting a rectangular ROI (preferably with mouse) to define an array subset and performing max/min/mean/standard deviation measurements on this region.  I am aware that the array would need reshaping to work with the in built VI for mean and standard deviation but cannot seem to find a way to may the selection of the array subset in the first place.
    I would be very grateful for any pointers
    Sarah Bohndiek

    Hi,
      since you're using an intensity graph, you could use an event structure to capture for the mouse down and mouse up events.
    They both give you the coords of where the mouse was. The nex trick would be to convert that into array position co-ordinates, which requires knowing how the data is presented in the graph (actual graph area size, and the amount of data passed to it.) It's easy enough to get the size of the plot area, and you can get the position of the control itself, however calculating exactly where the plot area is inside of the control is not available.
    If you plot area size is fixed, you could use a picture control, set to transparent over the top of the plot area. Then use the same trick for the event returning co-ordinates. If you change the values on the scale however, the actual plot area can change in size too (since the renumbering on an auto-scale can cause the scale on the axis to move if the text increases or decreases in length)
    By far the easiest route would be to buy the vision development module and use the image control which has the built in ROI capabilities (and editing of the ROI).
    Hope that helps
    Sacha Emery
    National Instruments (UK)
    // it takes almost no time to rate an answer
    Attachments:
    roi on intensity (picture).vi ‏73 KB

Maybe you are looking for

  • Reg: Uninvoiced Receipts Report

    Hi Consultants, We have a issue with Uninvoiced Receipts Report report for perion Oct-2009 and Nov-2009, User obeserved that some line of a PO is generated in Nov period but this lines are not generated in Oct-2009 user asking why it happen like that

  • What do I do if my laptop keeps saying checking media fail and it keeps saying no bootable device

    I need help because my laptop keeps saying checking media failed and then it says no bootable device please restart system I don't get it

  • Adobe reader ios

    is there a way to shut off the auto save function?

  • IP4700 discontinued?

    I have an iP4700 from many years ago.  It is still going strong and I love it.  I was looking to buy another for a Christmas gift but it appears to be discontinued.  Is that right and if yes, what is the closest replacement model?  A wireless version

  • Simple Investment application

    I know this sounds easy but please help me get started since I'm not too bright.. I have to make an Investment application that calculates how many years it will take for a 2500$ investment to be worth atleast 5000$ if compounded annually at 7.5%. Wh