12-09-2010 02:02 AM
say I have a image -simple red rectangular block. If I want change it color to say blue or any other color by modifying its R,G, B contents, is there a simple solution?
I tried some ideas but doesn't work.
Any help will be appreciated.
Thanks
12-09-2010 05:29 PM
It seems that you are going to have to modify the image data of the picture file. There are some examples of this on the community website. Depending on the bit depth of the image the following example may not work. You should be able to modify this example to take in a jpeg with (Read JPEG File.vi).
http://decibel.ni.com/content/docs/DOC-4884
<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE>
12-09-2010 11:05 PM
Hi,
You can extract Hue plane of the color image, modify the extracted plane and replace it back to original image.
Vance
12-14-2010 02:15 AM
Thanks for the reply.
I think with IMAQfill I can get this job done...
12-14-2010 08:31 AM - edited 12-14-2010 08:34 AM
Glad to hear you figured it out
12-14-2010 08:32 AM
I also was able to write up an example which modify the amounts of Red, Green, and Blue. This example extracts the red, green, and blue hue planes from a 32 bit
RGB image. I have imported an IMAQ shipping example image from file.I put it on the community website.
http://decibel.ni.com/content/docs/DOC-14557
<Joel Khan | Applications Engineering | National Instruments | Rice University BSEE>