[Insight-developers] IO Question
Luis Ibanez
luis . ibanez at kitware . com
Fri, 27 Jun 2003 11:38:52 -0400
Hi Kent,
Does your reader relies on an external library ?
if not,
you could safely put it in Insight/Code/IO
if, on the other hand, it depends on a library,
you may want to consider putting this library
in Insight/Utilities, and still placing the main
reader IO class in Insight/Code/IO
This is more or less what DICOM, PNG and
MetaImage do.
It may be difficult to factorize behavior between
readers producing images as output and those
producing other ITK objects. It is probably easier
for now to get your reader in the repository and
after that double check if there is any common
functioinality that can be factorized.
Luis
-------------------------------
Kent Williams wrote:
>I have written another reader for a Brains2 file type, to read in ROI files.
>But unlike the file readers in Insight/Code/IO the output of this reader is a
>itk::PolygonGroupSpatialObject.
>
>Ultimately, I would like to check this into ITK, because we are beginning to
>support other University of Iowa Departments' ITK development. I'd rather be
>able to point them at a CVS checkout of ITK rather than deliver a separate
>set of files for our additions.
>
>The question is this: Is there an appropriate place to integrate this sort of
>class? Insight/Utililties/MetaIO is the closest analog, but that really
>captures a file format and a parallel hierarchy of geometric representations.
>
>What I've done for the Brains2 ROI files is ad hoc, though it copies the
>interfaces of the ImageIO classes somewhat. But it seems to me that it would
>be worthwhile to come up with a standard way to read in ITK data objects
>besides Images. What would make the most sense design-wise would be to have
>a base class interface that would encompase both ITK Images, Spatial Objects,
>and anything else you'd want to store on disk.
>
>Thoughts and direction on this is welcome.
>
>_______________________________________________
>Insight-developers mailing list
>Insight-developers at itk . org
>http://www . itk . org/mailman/listinfo/insight-developers
>
>
>