<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<div>dear all,</div><div><br></div>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 (...)<div>i define the filter like this:</div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>vtkImageQuantizeRGBToIndex *imgfilter = vtkImageQuantizeRGBToIndex::New();</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> imgfilter->SetInput(_imageData);</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>imgfilter->SetNumberOfColors(256);</div><div> <span class="Apple-tab-span" style="white-space:pre">        </span>imgfilter->Update();</div></div><div>thanks,</div><div>Alba</div><div><br><div>
<p align="center"><font color="#000000"><img height="2" src="http://graphics.hotmail.com/greypixel.gif" width="100%" vspace="9"></font></p></div><br><br></div>                                            </body>
</html>