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

Miller, James V (Research) millerjv at crd.ge.com
Wed, 3 Mar 2004 14:07:22 -0500


I can (almost) live with that.  It seemed strange for a SpatialObject to a
subclass of ImageBase.  However, I don't think that ImageBase should have
all of the API of a SpatialObject.  Perhaps there should be a common
superclass that the shared code could be moved into. No idea what to call it
(ImageAndSpatialObjectBase?)

Jim



-----Original Message-----
From: Stephen R. Aylward [mailto:aylward at unc.edu]
Sent: Wednesday, March 03, 2004 1:41 PM
To: Miller, James V (Research)
Cc: Insight-developers (E-mail)
Subject: Re: [Insight-developers] Can SpatialObject be a subclass of
ImageBase?


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