[Insight-users] xxxxxSPAMxxxxx itkPolylineMask2DImageFilter

Isaac Abbott isaac.abbott at gmail.com
Fri Jan 15 11:05:32 EST 2010


I've added code to a project to allow a user to define the polyline to be
used in the itkPolylineMask2DImageFilter.

It works when I draw the polyline by clicking vertex points in the
counter-clockwise direction only.
It does not work when the polyline is defined by points in the clockwise
orientation (it sets the whole image to 0).

What is the deal with this?  Is there a reason for it or is it a bug?  It is
certainly not convenient.

These results can be replicated by changing two lines in the test file:
itkPolylineMask2DImageFilterTest
See commented lines below.

    VertexType v;
    v[0] = 12.8;
    v[1] = 25.6;
    inputPolyline->AddVertex(v);

    v[0] = 25.6;
    v[1] = 12.8;//39.4;                //Swapped to break filter;
    inputPolyline->AddVertex(v);

    v[0] = 39.4;
    v[1] = 25.6;
    inputPolyline->AddVertex(v);

    v[0] = 25.6;
    v[1] = 39.4;//12.8;                //Swapped to break filter;
    inputPolyline->AddVertex(v);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100115/7d64a017/attachment.htm>


More information about the Insight-users mailing list