08-23-2010 03:05 AM
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?
08-26-2010 09:01 AM
with the pixel at the centre and a given fixed radius
What is the diameter of the disc that needs to be drawn?
08-26-2010 09:07 AM
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!
08-26-2010 09:33 AM
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.
08-26-2010 09:37 AM
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?