Hi Filipe.

Morkulth:
> I want to get from a image in SVG the outlines of VISIBLE shapes.
> Example:
> 
> I have a huge yellow filled square stroked with black, wich totaly contains
> a yellow smaller square stroked and filled in yellow ( not visible).
> 
> Is there an easy way of getting only the black outline of the big square
> ignoring other information ( inclusive the yellow color and the outer
> smaller square element) ?
> 
> The only solution i have at the moment is to convert the image to JPEG and
> use countour extraction algoritms... not to bright.

For cases like you describe (the smaller yellow rectangle not being
visible just because it is on top of another yellow rectangle), then you
will have to use image processing techniques, at least in the general
case.  If you only have rectangles, then you could go through your
document to find them all, determine their extents, check if they
overlap, see if they have the same fill colours, etc.

You can use the convolution filter to do some edge detection, but I’m
not sure if that will give you exactly what you want.

Cameron

-- 
Cameron McCormack, http://mcc.id.au/
        xmpp:[EMAIL PROTECTED]  ▪  ICQ 26955922  ▪  MSN [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to