[vtkusers] VTK/Examples/Cxx/ImageData/IterateImageData
David Doria
daviddoria at gmail.com
Fri Dec 10 14:48:50 EST 2010
On Fri, Dec 10, 2010 at 2:41 PM, Rachel <aracha2010 at gmail.com> wrote:
>
> Hi all,
> i m looking for how to get pixel value in a image (it is black and white)
> and replace it with new value and save image.
> i tried to use the following example:
> VTK/Examples/Cxx/ImageData/IterateImageData
>
> the pixels values are set to 2.0. and then the code displays 0 instead 2.0
>
> any one know where is the mistake ?
>
> Many thanks
Are you running that code without modifying it? The output for me is:
Starting:
Dims: x: 2 y: 3 z: 1
Number of points: 6
Number of cells: 2
2 2
2 2
2 2
David
More information about the vtkusers
mailing list