[Insight-users] Using Any Filters

Julien Jomier jjomier@cs.unc.edu
Mon, 28 Apr 2003 17:36:57 -0400


Hi Neha,

ITK filters are using itk::Image as a data representation and therefore are
independent of the file format you are using. To answer your question, you
do not have to register filters with the IO factory.
Basically, the itkIO reads an image (any formats) from disk and produces an
itk::Image which is processed by the filters.

The best way to read a .raw image is to use the MetaImageImporter (in
InsightApplications) to create a MetaImage header. Then you can use the
ImageReadWrite example to read the MetaImage created. MetaImage is a file
format (see http://www.itk.org/HTML/Data.htm and
Insight/Utilities/MetaIO/doc) which specifies a header with the pixel type,
spacing, etc...  for your raw image.

However, you can take a look at the RawImageReaderViewer example (in
InsightApplications) or
even, in Insight/Testing/Code/IO if you want to read your .raw image
directly, but this is more complex.

Let us know if you have further questions.

Julien

-----Original Message-----
From: insight-users-admin@public.kitware.com
[mailto:insight-users-admin@public.kitware.com] On Behalf Of Neha D
Sent: Monday, April 28, 2003 3:46 PM
To: Luis Ibanez; cspl
Cc: insight-users@public.kitware.com; Lydia Ng
Subject: [Insight-users] Using Any Filters


Hi All,

I am trying to use any filter on raw images. Do I need register all those
filters to central IO Factory ? I have seen that most of ITK applications/
filters deal with formats like PNG. But I can not use any other format than
raw. Raw format is a must for me. 

Any input is highly appreciated. 
Thanks,
Neha

Luis Ibanez <luis.ibanez@kitware.com> wrote:

Hi Sateesh,

I agree with you in that 1Gb is too much memory
for performing the registration of your current
images using a single resolution level.

This may require to profile the example closer.
One typical suspect is the computation of derivatives
in the ImageMetric. In any case, it is quite likely
that some intermediate memory is being keept around
without being used.

The option I mention of loading only particular
levels of the pyramid is something you will have to
implement in your applications. This is not a feature
of the current multi-resolution framework.


Regards,


Luis


-------------------

cspl wrote:
> Hi Lius,
> Thanks for ur mail.
> As u said i tried Registration by reducing the number of levels to 
> 1. It is performing registration with out any error but it takes more 
> memory as i said before. It is taking nearly 1000Mb of memory. It is too 
> heavy.
> 
> Now how to load the memory related to particular level of the 
> pyramid. When we are in 1st level we should load only images related to 
> 1st level. Then when we are in 2nd level we should deallocate the 1st 
> level memory and load the second level memory and so on...How to achive 
> this task. I have gone through the documentation of the registration 
> class and pyramid class for any specific function which serves the 
> purpose. But i did not find one...Any other way to achive this.
> 
> I am trying the second method which u have said i.e. subsampling the 
> images, registering them, save the transform parameters and so on.
> 
> Please help in this regard. Time is running out for me.
> 
> Thanks in advance.
> 
> -Regards,
> Sateesh.



________ _______________________________________
Insight-users mailing list
Insight-users@public.kitware.com
http://public.kitware.com/mailman/listinfo/insight-users


Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.