[vtkusers] vtkImageQuantizeRGBToIndex - debug error

John Drescher drescherjm at gmail.com
Mon Mar 7 11:03:09 EST 2011


On Mon, Mar 7, 2011 at 10:49 AM, alba garin <albagarin1986 at hotmail.com> wrote:
>
> dear all,
> i am trying to take the 3 components of an rgb image and convert them into an index to get a look up table for the vtkImageViewer2, but i get an debug error: (...) HEAP CORRUPTION DETECTED: before Normal block at 0x03F02FD0. CRT detected that the application wrote to memory before start of heap buffer (...)
> i define the filter like this:
> vtkImageQuantizeRGBToIndex *imgfilter = vtkImageQuantizeRGBToIndex::New();
>  imgfilter->SetInput(_imageData);
>    imgfilter->SetNumberOfColors(256);
>    imgfilter->Update();
> thanks,
> Alba
>

Did you build and install the release vtk version and now are you
trying to run the debug build?

John



More information about the vtkusers mailing list