LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Drawing discs in binary images

I have the following challenge: In a binary image for any pixel with value zero, draw a disc (filled with red color) with the pixel at the centre and a given fixed radius. After this operation is done for each black pixel, calculate the proportion of the area in the image which is covered by the discs. Is there any fast way of doing this? 

0 Kudos
Message 1 of 5
(2,408 Views)

 


 with the pixel at the centre and a given fixed radius


 

 

What is the diameter of the disc that needs to be drawn?

0 Kudos
Message 2 of 5
(2,353 Views)

The diameter is given by the user but for the sake of simplicity, let's say 10 pixel. The issue in this case is to find a fast way of doing this. It seems to me that IMAQ Draw is quit slow and memory intensive. In some cases one needs to draw several million discs on an image!

0 Kudos
Message 3 of 5
(2,351 Views)

 


In some cases one needs to draw several million discs on an image!


 

 

That will definetly take some tme. One thing i will suggest is to try overlay functions. Say overlay points.

0 Kudos
Message 4 of 5
(2,344 Views)

It is possible to overlay discs too. Do you think that will take less time? I know that overlay function is non-destructive but why should it take less time?

0 Kudos
Message 5 of 5
(2,341 Views)