# Poorly named methods have been removed.

The methods useDiscrete, useGray and useHeat didn't conform to ITK method naming standards, and were deprecated in ITK 3.X. They are removed in ITK4. The following are also removed: TPixel color(unsigned int, char); RGBPixel< TPixel > *color(unsigned int c); char *colorName(unsigned int); RGBPixel< TPixel > *GetColor(unsigned int); unsigned int size()
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer colors = ColorTableType::New(); colors->useHeat(); colors->useGray(); colors->useDiscrete();
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer colors = ColorTableType::New(); colors->UseHeatColors(); colors->UseGrayColors(); colors->UseDiscreteColors();
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->useGray(); unsigned char green = ctable->color(0, 1);
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->UseGrayColors(); unsigned char green = ctable->GetColorComponent(0, 1);
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->useHeat(); unsigned char blue = ctable->color(3)->GetBlue();
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->UseHeatColors(); unsigned char blue = ctable->GetColor(3).GetBlue();
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->useHeat(); unsigned char blue = ctable->GetColor(3)->GetBlue();
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->UseHeatColors(); unsigned char blue = ctable->GetColor(3).GetBlue();
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->useHeat(); char *name = ctable->GetColorName(5);
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->UseHeatColors(); std::string name = ctable->GetColorName(5);
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->useHeat(); char *name = ctable->colorName(5);
#include "itkColorTable.h" typedef itk::ColorTable<unsigned char> ColorTableType; ColorTableType::Pointer ctable = ColorTableType::New(); ctable->UseHeatColors(); std::string name = ctable->GetColorName(5);
9323eeb1da1891fa6f86f935256598fe2444e7ec
Code/Common/itkColorTable.h
useDiscrete
UseDiscreteColors
useGray
UseGrayColors
useHeat
UseHeatColors
size
GetNumberOfColors
color(unsigned int, char)
GetColorComponent(unsigned int, char)