[Insight-users] ResampleImageFilter Problem!
Yingli Lu
yinglilu at gmail.com
Thu Jan 24 14:43:46 EST 2008
Hi Frank,
What viewer do you use? or recommend?
Thank you,
On Jan 24, 2008 11:32 AM, <frankmiller at jhmi.edu> wrote:
> Ying,
>
> The "windows picture and fax viewer" is only displaying the pixel array.
> It does not take into consideration the origin, spacing, or direction.
>
> The geometry of the itk::Image class can be confusing at first. Keep
> reading the user guide and playing with the examples. In particular, see
> figure 4.1 on page 40.
>
> Good luck,
>
> Frank
>
> On Wed, Jan 23, 2008 at 07:04:14PM -0500, Yingli Lu wrote:
> > Hi Frank,
> >
> > I used "windows picture and fax viewer" to open it.
> > It seems that there should be a transformation that transform from image
> > coordinate( origin at the upper left corner, x increasing to the right,
> y
> > increasing to the bottom) to physical coordiante. Tthen, the
> > ResampleImageFilter can use. Am I right?
> >
> > Thank you,
> >
> >
> > On Jan 23, 2008 4:42 PM, <frankmiller at jhmi.edu> wrote:
> >
> > > Ying,
> > >
> > > What program are you using to view the image? Many image viewing
> > > programs have the convention of placing the origin at the upper left
> > > corner, x increasing to the right, y increasing to the bottom.
> > >
> > > Frank
> > >
> > > On Wed, Jan 23, 2008 at 04:28:23PM -0500, Yingli Lu wrote:
> > > > Can anybody help me with this problem:
> > > >
> > > > I just ran the example of
> "Examples/Filtering/ResampleImageFilter.cxx"
> > > at
> > > > section 6.9.4 in the Userguide
> > > >
> > > > But I can't get the same result of Figure 6.40 in the Userguide
> (where,
> > > the
> > > > origin is at the lower left corner of the input image, and X
> coordinate
> > > is
> > > > horizontal to the right, Y coordinate is vertical to the up
> direction).
> > > >
> > > > My result seems to be based on a different coordinate: the origin is
> at
> > > the
> > > > upper left corner, and X coordinate is horizontal to the right, Y
> > > coordinate
> > > > is vertical to the down direction).
> > > >
> > > > Example code is wrong or Userguide is wrong?
> > > >
> > > > Thank you,
> > > >
> > > > Ying
> > >
> > > > _______________________________________________
> > > > Insight-users mailing list
> > > > Insight-users at itk.org
> > > > http://www.itk.org/mailman/listinfo/insight-users
> > >
> > >
> >
> >
> > --
> > Yingli Lu
> > GE Canada
> > 268 Grosvenor, E5-137
> > London, ON, N6A 4V2 Canada
> > Phone:(519) 646-6000 ext.64626
> > Email:yinglilu at gmail.com
> > yingli.lu at ge.com
>
--
Yingli Lu
GE Canada
268 Grosvenor, E5-137
London, ON, N6A 4V2 Canada
Phone:(519) 646-6000 ext.64626
Email:yinglilu at gmail.com
yingli.lu at ge.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20080124/70fce99e/attachment-0001.html
More information about the Insight-users
mailing list