[Insight-users] Problem with Spatial Object Duplicator when trying to Duplicate a Cylinder

Antonio Foncubierta antonio.foncubierta at gmail.com
Thu Feb 5 14:54:02 EST 2009


I see. Maybe I am not using the lattest version of ITK, because I'm tied to
the one that I need for Slicer.  I'll file the bug report as soon as
possible.

(Oh, and I just found a way to avoid the use of a Duplicator in my code, so
I don't have that problem anymore)

Antonio Foncubierta


2009/2/5 Bill Lorensen <bill.lorensen at gmail.com>

> 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
> >
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090205/2aee93cf/attachment.htm>


More information about the Insight-users mailing list