10-18-2010 10:51 AM
Hello - I've written a simple VI that when one moves the cursor, it grabs the 'color' value at that location and allows one to replace it and all locations of similar color value with a replacement color. I first normalize the image to between 0 and 255 to correspond with 256 values in an 8-bit image. For a simple image, I have just a 2-color (binary) image composed of 0 and 255.
I move the cursor, which indexes the image and grabs the value corresponding to a gray value between 0 and 255. I then use this as the index to the new color, and replace the color at that index with the replacement color.
When I move the cursor, it indicates to me whether I am on a '0' or '255' but the color replacement is not made properly (although the color ramp does seem to indicate it should be).
This would seem to be a simple task. What am I doing improperly?
Thanks,
Don
Solved! Go to Solution.
10-18-2010 11:32 AM
Your example is missing subVIs and won't open.
10-18-2010 11:44 AM
Hi Mark
I used LabVIEW 2009 64-bit to create the LLB which appears to have caused the problem with missing subVIs. I redid the save with LabVIEW 2010 32-bit. See if this works.
Don
10-18-2010 12:34 PM
I don't have LV 2010 insatlled yet. We generally don't make the transition right away.
These are realtively small VIs so just attach them individually saved for 2009.
10-18-2010 01:30 PM
Here are the 3 subVIs (I guess the forum only allows 3 attachments). Next message contains the top level VI to run....Don
10-18-2010 01:31 PM
Here is the top-level VI. Tell Doug Fox I said hello.
Thanks for looking.
Don
10-18-2010 01:39 PM
Wait - these are still LabVIEW 2010. Let me repost as LabVIEW 2009 in a bit.....Don
10-18-2010 01:45 PM
This LLB should open in LabVIEW 2009....Don
10-18-2010 01:57 PM
@DonRoth wrote:
Tell Doug Fox I said hello.
I don't really run into him. Most people like to stay clear of engineering.
10-18-2010 02:09 PM - edited 10-18-2010 02:09 PM
Doug, even as a CFO, actually loves science and is a great DIYer. He has read more Scientific America articles than I have and has carpenter ancestry. Sorry folks to get off topic....Don