Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Image to Array and find hotpixel

Solved!
Go to solution

dear forum,

 An image is loaded ( see attached testimg) and converted to an array. In this image (array), some pixels have a gray value greater than 1. These pixels are to be found and their position (x/y) should be stored in a text file (or csv...). Is there an example for this application or has someone  a snippet for me?

Thanks

0 Kudos
Message 1 of 3
(2,612 Views)

Dear Hallmann,

 

as you already found the image to array function, you can just use the compare function to iterate through your 2D array. Together with the conditional output of a for loop you can write the corresponding addresses into a 1D array. For data logging, just have a look into the File I/O Palette.

 

cheers

Fabian Wehnekamp
Senior Technical Support Engineer
National Instruments
0 Kudos
Message 2 of 3
(2,562 Views)
Solution
Accepted by topic author HallmannSVS

Dear Fabian,

 thank you for your replay. You right, you suggestion is an sulotion.I have also found a solution.see attachementSolution_hot pix.JPG

 

 

 

 

0 Kudos
Message 3 of 3
(2,535 Views)