[Insight-users] Writing a created image

Julien Jomier jjomier at cs.unc.edu
Thu, 18 Mar 2004 15:54:55 -0500


Hi Prathyusha,

You simply do:
writer->SetInput(image);
where image is a smart pointer to an itk::Image.

Julien

> -----Original Message-----
> From: insight-users-admin at itk.org 
> [mailto:insight-users-admin at itk.org] On Behalf Of aragondp at cs.tamu.edu
> Sent: Thursday, March 18, 2004 3:47 PM
> To: ITK Users
> Subject: [Insight-users] Writing a created image
> 
> 
> Hi,
> 
> I want to create an image as given in 4.1.1 of 
> ITKSoftwareGuide and then write it to a file. The image 
> created is assigned gray-level values using SetPixel(). 
> When I define a writer to write the images, I could find 
> examples either configuring it to get output from a reader or 
> a filter such as 
> writer->SetInput(reader->GetOutput)
> But I want to create new file which takes input from "image" 
> that is created, without using any other input image. Can you 
> please explain how to do this?
> 
> Thanks in advance,
> Prathyusha.
> 
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org 
> http://www.itk.org/mailman/listinfo/insight-> users
>