[vtkusers] vtkImageQuantizeRGBToIndex - debug error

alba garin albagarin1986 at hotmail.com
Mon Mar 7 10:49:27 EST 2011


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



 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110307/1872e73a/attachment.htm>


More information about the vtkusers mailing list