[Insight-developers] Re: backward imcompatible changes in
gaussian spatial object ?
Gaetan Lehmann
gaetan.lehmann at jouy.inra.fr
Mon Jan 15 08:59:26 EST 2007
I see this other problem:
On Mon, 15 Jan 2007 14:52:41 +0100, Gaetan Lehmann
<gaetan.lehmann at jouy.inra.fr> wrote:
> filter = itk.SpatialObjectToImageFilter[SOType,
> InternalImageType].New( group, Size=[100,100], UseObjectValue=True )
> filter.Update() # required ?!
Do you know why it is required to call Update() on the
SpatialObjectToImageFilter object ?
If the Update() method is called on the writer object only, the program
fail with the message:
RuntimeError: /home/glehmann/src/Insight/Code/IO/itkPNGImageIO.cxx:432:
itk::ERROR: PNGImageIO(0x87c1c68): PNG Writer can only write 2-dimensional
images. You are requesting to write an image of dimension = 0 with
filename SpatialObject.png
Thanks,
Gaetan
--
Gaëtan Lehmann
Biologie du Développement et de la Reproduction
INRA de Jouy-en-Josas (France)
tel: +33 1 34 65 29 66 fax: 01 34 65 29 09
http://voxel.jouy.inra.fr
More information about the Insight-developers
mailing list