[Insight-users] Writing an image of Vectors
Bing Jian
bjian at cise . ufl . edu
Mon, 13 Oct 2003 12:43:19 -0400 (EDT)
THanks Luis.
I even cannot write an image of vectors. Trying to write a
vector image gave following error at runtime:
This application has requested the Runtime to terminate it in an
unusual way.
Please contact the application's support team for more information.
Press any key to continue
What I did is just as follows:
typedef itk::ImageFileWriter < VectorImageType > WriterType;
WriterType::Pointer writer = WriterType::New();
writer->SetFileName(argv[2]);
writer->SetInput(gradient->GetOutput());
writer->Update();
--
Best wishes,
Bing Jian
bjian at cise . ufl . edu
On Mon, 13 Oct 2003, Luis Ibanez wrote:
>
> Hi Bing,
>
> You can write an image of vectors but not an image
> of Matrices (with current writers).
>
> You can use a MetaImage file for this purpose.
>
> You don't need (and actually don't want) to introduce
> a rescale intensity filter before writing.
>
>
> Regards,
>
>
> Luis
>
>
>
> ------------------
> Bing Jian wrote:
> > One more question:
> >
> > Can writer write a vector image or matrix image into
> > a file directly? Is the rescaler necessary?
> >
> > Thanks!
> >
>
>
>
>
>