[Insight-users] Problem with Spatial Object Duplicator when trying to Duplicate a Cylinder
Bill Lorensen
bill.lorensen at gmail.com
Thu Feb 5 13:34:21 EST 2009
Antonio,
Looks like a bug. Please file a bug report following the procedure in:
http://www.itk.org/Wiki/ITK_Procedure_for_Contributing_Bug_Fixes
Bill
On Wed, Feb 4, 2009 at 11:14 AM, Antonio Foncubierta
<antonio.foncubierta at gmail.com> wrote:
> Hello,
>
> I've been trying to use a Spatial Object Duplicator to get an exact copy of
> some Spatial Objects. I've had no problems with ellipseSpatial Objects, but
> when I try to duplicate a CylinderSpatialObject, I get the following Error
> Message:
>
> Could not create an instance of CylinderSpatialObject_3
> The usual cause of this error is not registering the SpatialObject with
> SpatialFactory
> Currently registered Transforms:
> "DTITubeSpatialObject_3"
> "EllipseSpatialObject_3"
> "GroupSpatialObject_3"
>
> My code:
>
> typename MovingSpatialObjectType::Pointer currentSO;
> typedef itk::SpatialObjectDuplicator<MovingSpatialObjectType>
> DuplicatorType;
> typename DuplicatorType::Pointer duplicator = DuplicatorType::New();
>
> duplicator->SetInput(this->m_MovingSpatialObject);
> duplicator->Update();
>
> I just don't understand what I should do with the SpatialFactory to make
> this work. What am I doing wrong?
>
> Thank you
>
>
> Antonio Foncubierta
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list