[vtkusers] ImageData WholeExtent/Dimensions problem

Charles Law charles.law at kitware.com
Fri Oct 6 11:48:14 EDT 2000


John,

I have been working on the UpdateExtent (a couple months ago).  It should 
handle a single point just fine.  I will take a look at the problem.

Charles.


At 12:54 AM 10/6/00 +0100, John Biddiscombe wrote:
>I'm averaging some 2D data and producing a final value which in
>some cases consists of a single pixel.
>
>Setting
>data->SetWholeExtent(0,0,0,0,0,0);
>data->SetDimensions(1,1,1);
>used to set the dimensions of the image to
>1,1,1 as expected
>but now the Extent is being set to
>0,-1,0,-1,0,-1
>and dimensions are returned as 0,0,0
>
>causing most grievious access violations when allocating scalars
>and writing to memory.
>
>Has someone changed the functionality to handle UpdateExtents and
>streaming issues differently (invalid update extents)?
>
>thanks
>
>John B
>
>
>
>_______________________________________________
>This is the private VTK discussion list.
>Please keep messages on-topic. Check the FAQ at: 
><http://public.kitware.com/cgi-bin/vtkfaq>
>Follow this link to subscribe/unsubscribe:
>http://public.kitware.com/mailman/listinfo/vtkusers





More information about the vtkusers mailing list