Core Optical, Inc.
LinearPerceptionColorScheme ClassIndustrial Strength, Scientific Grade
A type encapsulating a linear pseudocoloring algorithm
Inheritance Hierarchy

OnlineSystem Object
  PrecisionImage.Visualization LinearPerceptionColorScheme

Namespace: PrecisionImage.Visualization
Assembly: PrecisionImage (in PrecisionImage.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax

public class LinearPerceptionColorScheme
Remarks

The LinearPerceptionColorScheme type is an implementation of a modern pseudocoloring algorithm designed specifically to address the shortcomings of the traditional "rainbow" type (SpectrumColorScheme) coloring scheme and other ad-hoc pseudocoloring schemes like it. It approximates a color progression that is both monotonic in terms of its luminosity change and linear in its perceived hue progression. It is particularly useful for x-ray radiographs.

Examples

The following example illustrates the use of the LinearPerceptionColorScheme class.

using PrecisionImage;
using PrecisionImage.Visualization;

// Load the image: 
Uri imageUri                   = new Uri("DentalXray.tif", UriKind.Relative);
TiffBitmapDecoder imageDecoder = new TiffBitmapDecoder(imageUri, BitmapCreateOptions.PreservePixelFormat, BitmapCacheOption.Default);
BitmapSource SourceImage       = imageDecoder.Frames[0];
image0.Source                  = SourceImage; // Display x-ray 

// Load x-ray data into SourceData object: 
SourceData xrayData = new SourceData(SourceImage, GammaEncoding.None);

// Apply the linear preception pseudocoloring scheme to the x-ray: 
LinearPerceptionColorScheme colorScheme   = new LinearPerceptionColorScheme();
image1.Source = colorScheme.GetPseudocolorImage(XrayData, 0, ColorBitDepth.EightBit);

The above example generates the following images:

See Also