[Insight-developers] Can SpatialObject be a subclass of ImageBase?

Stephen R. Aylward aylward at unc.edu
Wed, 03 Mar 2004 13:41:00 -0500


Hi,

We are making changes to SpatialObjects - including a 
SpatialObjectSource, etc.   Also, MITK is being integrated with ITK via 
spatialObjects, so the tree hierarchy of SpatialObjects is being 
extended.   I'd hesitate to make other changes simultaneously.

SpatialObjects contain images possibly.  That seems very circular. 
Perhaps image should derive from spatialObject, but the other way around 
seems very odd.

Thanks,
Stephen



Miller, James V (Research) wrote:

> This is a rather strange question but I am trying to clean up some of 
> subclasses of DataObject and noticed that SpatialObject has a lot of 
> code that is identical to ImageBase.  Can anyone see a problem with 
> making SpatialObject a subclass of ImageBase?
>  
> Note that ImageBase is simply templated over dimension, provides the 
> mechanisms to set regions, and provides the pipeline interface.  No 
> pixel data is allocated in ImageBase (that is left to its subclasses).
>  
>  
> 
> *Jim Miller*
> */_____________________________________/*
> /Visualization & Computer Vision//
> /GE Research/
> /Bldg. KW, Room C218B/
> /P.O. Box 8, Schenectady NY 12301/
> 
> //_millerjv at research.ge.com <mailto:millerjv at research.ge.com>_/
> 
> /_james.miller at research.ge.com_/
> /(518) 387-4005, Dial Comm: 8*833-4005, /
> /Cell: (518) 505-7065, Fax: (518) 387-6981/
> 
>  

-- 
===========================================================
Dr. Stephen R. Aylward
Associate Professor of Radiology
Adjunct Associate Professor of Computer Science and Surgery
http://caddlab.rad.unc.edu
aylward at unc.edu
(919) 966-9695