Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

substitute pixel value

Hey!

 

 

How can I substitute all black pixels on a picture to another value. I am trying to do it with IMAQ setpixelvalue, but I have to have informations of all locations of black pixels. I belive there is an easier soultion. Please help. Tnx!

 

Matej 

0 Kudos
Message 1 of 3
(3,233 Views)
This is not essentially silmple but this immediately came to my mind. Convert "image to array" and replace all zeros with the desired value and caonvert back to an image using "array to image"
0 Kudos
Message 2 of 3
(3,232 Views)
can you also post a image?
0 Kudos
Message 3 of 3
(3,231 Views)