Notes |
|
(0010276)
|
Luis Ibanez
|
2008-01-23 17:08
|
|
will fix code and add test.
|
|
|
(0018120)
|
mseise
|
2009-10-20 02:23
|
|
The same problem occurs when using the IsInside() method for a 2dimensional Polygon (PolygonSpatialObject< 2 >).
That method is used, for example, in SpatialObjectToImageFilter. |
|
|
(0021527)
|
pingkunyan
|
2010-07-28 15:55
|
|
The bug still exists when calculating the area of a 2D polygon.
In line 32-35 of "itkPolygonSpatialObject.txx", it is hard coded that
if (Self::ObjectDimension == 2)
{
return Axial;
}
However, when calculating area, in line 156-157
case Axial:
X = 0; Y = 2;
For 2D case, this will never get the right Y location and thus give invalid area size.
A quick fix is to take mseise's suggestion:
if (Self::ObjectDimension == 2)
{
return Coronal;
} |
|
|
(0022565)
|
Hans Johnson
|
2010-10-21 11:11
|
|
|