Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Trying to replicate a gray processing operation called "black flood"

I am trying to replicate a gray processing function call "black flood". This is found in Leica image analysis software. The documentation reads, "Fills in black detail without affecting the boundaries.  This is done by closing by the selected number of cycles and then performing a gray-level reconstruction.”

 

Any ideas how to pull this off in IMAQ Vision?

 

Thanks!

0 Kudos
Message 1 of 3
(3,945 Views)

Hello Steverino,

 

 

Are you applying this processing to a grayscale image?  It sounds like the function is applying some morphological steps on the image.  Our Vision Development Module includes binary morphology, however this "black flood" sounds like a higher level function that probably includes multiple image processing steps.  Would it be possible to see some example images so that we can make better suggestions?

Regards,
Isaac S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,928 Views)

IMAQ has Gray level reconstruction. 

It seems to me like you want to implement the Matlab function imfill. 

You don't have to do closing if you don't want to. This logic will work even without the closing. Closing will remove the raged edges.

What you need to do is to inverse the image so the black holes will be bright.

Then you use the image reconstruction to fill up the holes.

Then inverse the image back.

 

Thanks - Amit,

 

Amit Shachaf
0 Kudos
Message 3 of 3
(3,907 Views)