LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Change pixel value

Hi,
 
How can I change a pixel value. For example, I want all the pixel with value of 0 to be changed to 255, and all pixel with value of 255 to 0.
 
 
Thanks.
0 Kudos
Message 1 of 3
(3,201 Views)
OK,

That's a simple thing to do. But first you can tell more details:
 - Are you using imaq.
 - The source it's a picture control or image control (from imaq)

in both ways, you should convert the image to an array 2D and then with two for loops, search all the array.
Each for cycle it's read pixel value annd you just have to check the value and act.

You you still don't know. Just post here another question.

It's better if you put a simple example and then I can complete. Don't forget to tell us the labview version
Software developer
www.mcm-electronics.com





PORTUGAL
Message 2 of 3
(3,188 Views)
Use 2 For loops..ok, got the idea..Thanks!
0 Kudos
Message 3 of 3
(3,181 Views)