MCPcopy Create free account
hub / github.com/Kitware/VTK / BuildTable

Method BuildTable

Filters/Hybrid/vtkImageToPolyDataFilter.cxx:516–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514}
515
516void vtkImageToPolyDataFilter::BuildTable(unsigned char* vtkNotUsed(inPixels))
517{
518 int red, green, blue, idx = 0;
519
520 this->Table->SetNumberOfValues(256 * 3);
521
522 // use 3-3-2 bits for rgb
523 for (blue = 0; blue < 256; blue += 64)
524 {
525 for (green = 0; green < 256; green += 32)
526 {
527 for (red = 0; red < 256; red += 32)
528 {
529 this->Table->SetValue(idx++, red);
530 this->Table->SetValue(idx++, green);
531 this->Table->SetValue(idx++, blue);
532 }
533 }
534 }
535}
536
537int vtkImageToPolyDataFilter::FillInputPortInformation(int, vtkInformation* info)
538{

Callers 1

QuantizeImageMethod · 0.95

Calls 2

SetNumberOfValuesMethod · 0.45
SetValueMethod · 0.45

Tested by

no test coverage detected