[Insight-users] Just a Question: Is there any utility other than CMake that can be used to build ITK ?

Neha D itkneha@yahoo.com
Sun, 16 Mar 2003 13:00:50 -0800 (PST)


--0-95736978-1047848450=:71512
Content-Type: text/plain; charset=us-ascii


Hi all,
Although CMake is developed as a part of ITK project, I am just curious to know if there is any other utility similar to CMake, which can be used to build ITK ?
Thanks,
Neha
 Luis Ibanez <luis.ibanez@kitware.com> wrote:
Hi Neha,


Unfortunately not all applications in the InsightApplications
module are taking full advantage of the factory mechanism.

For example, GaussianFilter was restricted to use MetaImage.
In recent weeks, there has been an explosion of new file
formats in the toolkit. So, we have to revisit the applications
and make sure they are taking advantage of the new possibilities.

The GaussianFilter application has been modified now to accept
any of the default file formats registered in the factory
mechanism.

Please try your image with the "MetaImageViewer", this viewer
should be able to read (in addition to MetaImage), any of the
default file formats. Note that this application will display
a window and requires you to click on the window in order to
force a first refresh. Your file should work ok in this viewer.

Note that RAW is *not* a default format. The reason is that it
is actually not a format at all. In order to read RAW files you
have to hardcode the parameters of the file. That practice defeats
the whole purpose of the flexibility provided by the IO factory
mechanism.


Please let us know if you find any problems,


Thanks


Luis



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

shilpa kinkar wrote:
> Hi Luis,
> 
> I changed header value ElementType = MET_USHORT, but still it does not 
> work. I tested it again my saving the header file with above value. 
> Well, I guess, I am doing some silly mistake while giving inputs.
> 
> Can you pls. tell me if the filters in application are intended to 
> aupport all 6 file formats supported by ITK currently ? I tried 
> GradientFilter and discrete Gaussian filter, but they are not working. 
> GradientMagnitudeImageFilter application uses oly PNGImageIO object.
> 
> So, how do I proceed to apply filters on raw files ? ( currently, I am 
> converting raw files to PNG format and then apply filter to it.
> 
> Thanks,
> 
> neha
> 
> Thanks a lot.
> 
> Neha
> 
> */Luis Ibanez /* wrote:
> 
> 
> Hi Neha,
> 
> Thanks for sending the header file of you metaimage.
> 
> The problem is that the RAW file that you are providing is
> using 16 bits (unsigned short) while your header is saying
> that it contains 8bits (unsigned char).
> 
> By changing this in the header I can load your image.
> 
> Note that the image is encoded in 16bits but the actual
> content is not filling the dynamic range, so the image
> appears quite dark when you loaded in a viewer.
> 
> 
> Here is the content of the correct header:
> 
> -------- begin of header ------------
> 
> NDims = 2
> DimSize = 512 512
> ElementSpacing = 0.7 0.585
> Position = 0 0
> ElementByteOrderMSB = True
> ElementType = MET_USHORT
> HeaderSize = -1
> ElementDataFile = pp37.raw
> 
> ---------- end of header ------------
> 
> 
> Regards,
> 
> 
> Luis
> 
> 
> -----------------------------------
> 
> shilpa kinkar wrote:
> > Hi Luis,
> >
> > I have attached the header file as well as data file which I need to
> > work on. Now, I have tested InsightApplication/RawImageReadWrite
> and it
> > works fine with Data provided by Insight. (
> > Examples\Data\ResampleImageFilterInput2x3b.RAW )
> >
> > Since this application is working excellent with my image data (
> > pp37.raw ), now I don't need to use MetaImageReader.
> >
> > Now, what I want to do is, apply Guassian Filter on raw file. I
> could
> > successfully test the DiscreteFuassian Filter on PNG file , ( I
> used the
> > same program which i was using with Insight 1.0.0 but this time used
> > Insight 1.2.0 Binaries and it worked fine for PNG files ) BUT
> ...NOT on
> > raw file. I think, Filters do not create objects for RAW files ?
> Can you
> > tell me what I should do to apply filter on RAW images ?
> >
> > Thanks,
> >
> > Neha!
> >
> 
> >
> > NDims = 2
> > DimSize = 512 512
> > ElementSpacing = 0.7 0.585
> > Position = 0 0
> > ElementByteOrderMSB = True
> > ElementType = MET_UCHAR
> > HeaderSize = -1
> > ElementDataFile = pp37.raw
> 
> 
> 
> 
> ------------------------------------------------------------------------
> Do you Yahoo!?
> Yahoo! Web Hosting 
> 
> - establish your business online



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


---------------------------------
Do you Yahoo!?
Yahoo! Web Hosting - establish your business online
--0-95736978-1047848450=:71512
Content-Type: text/html; charset=us-ascii

<P>Hi all,
<P>Although CMake is developed as a part of ITK project, I am just curious to know if there is&nbsp;any other&nbsp;utility similar to CMake, which can be used to build ITK ?
<P>Thanks,
<P>Neha
<P>&nbsp;<B><I>Luis Ibanez &lt;luis.ibanez@kitware.com&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>Hi Neha,<BR><BR><BR>Unfortunately not all applications in the InsightApplications<BR>module are taking full advantage of the factory mechanism.<BR><BR>For example, GaussianFilter was restricted to use MetaImage.<BR>In recent weeks, there has been an explosion of new file<BR>formats in the toolkit. So, we have to revisit the applications<BR>and make sure they are taking advantage of the new possibilities.<BR><BR>The GaussianFilter application has been modified now to accept<BR>any of the default file formats registered in the factory<BR>mechanism.<BR><BR>Please try your image with the "MetaImageViewer", this viewer<BR>should be able to read (in addition to MetaImage), any of the<BR>default file formats. Note that this application will display<BR>a window and requires you to click on the window in order to<BR>force a first refresh. Your file should work ok in this viewer.<BR><BR>Note that RAW is *not* a default format. The reason is that it<BR>is actually not a format at all. In order to read RAW files you<BR>have to hardcode the parameters of the file. That practice defeats<BR>the whole purpose of the flexibility provided by the IO factory<BR>mechanism.<BR><BR><BR>Please let us know if you find any problems,<BR><BR><BR>Thanks<BR><BR><BR>Luis<BR><BR><BR><BR>-------------------------<BR><BR>shilpa kinkar wrote:<BR>&gt; Hi Luis,<BR>&gt; <BR>&gt; I changed header value ElementType = MET_USHORT, but still it does not <BR>&gt; work. I tested it again my saving the header file with above value. <BR>&gt; Well, I guess, I am doing some silly mistake while giving inputs.<BR>&gt; <BR>&gt; Can you pls. tell me if the filters in application are intended to <BR>&gt; aupport all 6 file formats supported by ITK currently ? I tried <BR>&gt; GradientFilter and discrete Gaussian filter, but they are not working. <BR>&gt; GradientMagnitudeImageFilter application uses oly PNGImageIO object.<BR>&gt; <BR>&gt; So, how do I proceed to apply filters on raw files ? ( currently, I am <BR>&gt; converting raw files to PNG format and then apply filter to it.<BR>&gt; <BR>&gt; Thanks,<BR>&gt; <BR>&gt; neha<BR>&gt; <BR>&gt; Thanks a lot.<BR>&gt; <BR>&gt; Neha<BR>&gt; <BR>&gt; */Luis Ibanez <LUIS.IBANEZ@KITWARE.COM>/* wrote:<BR>&gt; <BR>&gt; <BR>&gt; Hi Neha,<BR>&gt; <BR>&gt; Thanks for sending the header file of you metaimage.<BR>&gt; <BR>&gt; The problem is that the RAW file that you are providing is<BR>&gt; using 16 bits (unsigned short) while your header is saying<BR>&gt; that it contains 8bits (unsigned char).<BR>&gt; <BR>&gt; By changing this in the header I can load your image.<BR>&gt; <BR>&gt; Note that the image is encoded in 16bits but the actual<BR>&gt; content is not filling the dynamic range, so the image<BR>&gt; appears quite dark when you loaded in a viewer.<BR>&gt; <BR>&gt; <BR>&gt; Here is the content of the correct header:<BR>&gt; <BR>&gt; -------- begin of header ------------<BR>&gt; <BR>&gt; NDims = 2<BR>&gt; DimSize = 512 512<BR>&gt; ElementSpacing = 0.7 0.585<BR>&gt; Position = 0 0<BR>&gt; ElementByteOrderMSB = True<BR>&gt; ElementType = MET_USHORT<BR>&gt; HeaderSize = -1<BR>&gt; ElementDataFile = pp37.raw<BR>&gt; <BR>&gt; ---------- end of header ------------<BR>&gt; <BR>&gt; <BR>&gt; Regards,<BR>&gt; <BR>&gt; <BR>&gt; Luis<BR>&gt; <BR>&gt; <BR>&gt; -----------------------------------<BR>&gt; <BR>&gt; shilpa kinkar wrote:<BR>&gt; &gt; Hi Luis,<BR>&gt; &gt;<BR>&gt; &gt; I have attached the header file as well as data file which I need to<BR>&gt; &gt; work on. Now, I have tested InsightApplication/RawImageReadWrite<BR>&gt; and it<BR>&gt; &gt; works fine with Data provided by Insight. (<BR>&gt; &gt; Examples\Data\ResampleImageFilterInput2x3b.RAW )<BR>&gt; &gt;<BR>&gt; &gt; Since this application is working excellent with my image data (<BR>&gt; &gt; pp37.raw ), now I don't need to use MetaImageReader.<BR>&gt; &gt;<BR>&gt; &gt; Now, what I want to do is, apply Guassian Filter on raw file. I<BR>&gt; could<BR>&gt; &gt; successfully test the DiscreteFuassian Filter on PNG file , ( I<BR>&gt; used the<BR>&gt; &gt; same program which i was using with Insight 1.0.0 but this time used<BR>&gt; &gt; Insight 1.2.0 Binaries and it worked fine for PNG files ) BUT<BR>&gt; ...NOT on<BR>&gt; &gt; raw file. I think, Filters do not create objects for RAW files ?<BR>&gt; Can you<BR>&gt; &gt; tell me what I should do to apply filter on RAW images ?<BR>&gt; &gt;<BR>&gt; &gt; Thanks,<BR>&gt; &gt;<BR>&gt; &gt; Neha!<BR>&gt; &gt;<BR>&gt; <BR>&gt; &gt;<BR>&gt; &gt; NDims = 2<BR>&gt; &gt; DimSize = 512 512<BR>&gt; &gt; ElementSpacing = 0.7 0.585<BR>&gt; &gt; Position = 0 0<BR>&gt; &gt; ElementByteOrderMSB = True<BR>&gt; &gt; ElementType = MET_UCHAR<BR>&gt; &gt; HeaderSize = -1<BR>&gt; &gt; ElementDataFile = pp37.raw<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; ------------------------------------------------------------------------<BR>&gt; Do you Yahoo!?<BR>&gt; Yahoo! Web Hosting <BR>&gt; <HTTP: evt="7748/*http://webhosting.yahoo.com/ps/wh3/prod/" mail_tagline webhosting rd.yahoo.com><BR>&gt; - establish your business online<BR><BR><BR><BR>_______________________________________________<BR>Insight-users mailing list<BR>Insight-users@public.kitware.com<BR>http://public.kitware.com/mailman/listinfo/insight-users</BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/webhosting/mail_tagline/evt=7748/*http://webhosting.yahoo.com/ps/wh3/prod/">Yahoo! Web Hosting</a> - establish your business online
--0-95736978-1047848450=:71512--