[Insight-developers] Re: backward imcompatible changes in gaussian spatial object ?

Julien Jomier julien.jomier at kitware.com
Mon Jan 15 14:28:04 EST 2007


Strange... it should work.
I just tested the itkSpatialObectToImageFilterTest with a writer and 
calling the Update() on the writer and it propagates to the filter as 
expected.

Is that only happening when using the wrapped version of the filter?

Julien

Gaetan Lehmann wrote:
> 
> 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