levelIntensity Method

Summary

Remaps the color of the image data based on the specified values in

low** and
high**.

Syntax

JavaScript Syntax
levelIntensity = function(imageData, low, high) 
TypeScript Syntax
static levelIntensity(imageData: ImageData, low: number, high: number): void; 

Parameters

imageData

The input image data, which will be filled with the output.

low

The low range color, which will be mapped to 0.

high

The high range color which will be mapped to 255.

Remarks

The low color value will be mapped to 0, while the high color will be mapped to 255, and all the values in between will be stretched to fill the range from 0 to 255.

Requirements

Target Platforms

Help Version 19.0.2017.10.18
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.Medical Assembly