05-08-2014 01:52 AM
Hello there.
I would like to ask how can I change the color in one part of a picture (not the whole picture).
Here's an example:
In the candy picture above, I would like to change the pink part in the picture to color blue. How would I do that? (This is an example only.)
I am using LabVIEW 2013 and I would like to know how can I do it using IMAQ and/or Vision Express.
Thank you.
05-09-2014 09:05 AM
Hi wewtalaga,
It seems that you would need some sort of lookup table. The process of changing the color would have to find the color that you want to change and then have the value you want to change it to. Here are the ones for color:
IMAQ ColorBCGLookUp VI
IMAQ ColorUserLookUp VI
Here is a forum post on how to use the lookup table:
http://forums.ni.com/t5/Machine-Vision/How-to-use-color-lookup-table/td-p/972222
Hopefully, this will help you get started.
05-09-2014 10:43 AM
Convert the image to the HSV plane, and just apply the lookup table to the Hue image. It will be much simpler since it will just be 256 values.
Bruce
05-10-2014 08:40 AM
Thank you very much. I will try your suggestions and I will post here the result. 🙂
05-10-2014 12:01 PM
FuManWho, after finding the color, how can I change it? Will I also use the IMAQ ColorBCGLookUp VI and/or IMAQ ColorUserLookUp VI?
05-10-2014 12:47 PM - edited 05-10-2014 12:51 PM
Oh. By the way, is the IMAQ ColorBCGLookUp VI and/or IMAQ ColorUserLookUp VI the one that I will use for finding the color that I will change?
I attached a photo of what I've done so far. What I'm trying to do is to change all the yellow colors in a photo to a white color.