levelIntensity Method

Summary

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

low** and
high**.

Syntax
TypeScript
JavaScript
levelIntensity = function( 
   imageData, 
   low, 
   high 
) 
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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls.Medical Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.