[Insight-users] Writing a created image

aragondp at cs.tamu.edu aragondp at cs.tamu.edu
Thu, 18 Mar 2004 14:47:10 -0600


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.