[Insight-users] Reading multiple images, writing one output
k s
smythek at u.washington.edu
Wed May 10 22:44:01 EDT 2006
Hi Luis,
I read through all the examples, and I didn't see any that were close to
what I want to do. I want to take two inputs (from two readers), and write
them out to one output, where the second image overlaps the first by some
specified amount. For example if image A were dimension [m,n] and B were
dimension [x,y], I want to make a composite of them of dimension [m+x-c,
n+y-d] for some c and d.
I tried using an ImageIterator to do so, but all I can do is write image A,
and then write image B out below it, without the overlap. [I simply wrote
out Image A while A's iterator was not AtEnd(), then wrote out B.] To
overlap the images, I tried to specify the SetPosition of my output
Iterator, but got an error. I am wondering if I should continue down the
Iterator path, or whether there are Copy/PasteRegion functions in itk I am
not aware of.
Thanks!
Kathy
-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez at kitware.com]
Sent: Wednesday, May 10, 2006 6:00 AM
To: smythek at u.washington.edu
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Reading multiple images, writing one output
Hi Kathy,
Please take a look at the examples in the ITK Software Guide,
in the chapter "Reading and Writing Images".
You will find the source code in the directory:
Insight/Examples/IO
Regards,
Luis
-------------------------------------
smythek at u.washington.edu wrote:
> Hi,
>
> I'm trying to write multiple inputs to one output. I thought the
> itkImageSeriesReader paired with a writer would work, but I get an
> obscure error when I try to run the program. Is there another way to do
> this?
>
> Kathy
>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list