Accusoft.ImagXpress12.Net
ApplyGrayscaleTransform(Medical) Method
See Also  Example Send Feedback
Accusoft.ImagXpressSdk Namespace > Processor Class > ApplyGrayscaleTransform Method : ApplyGrayscaleTransform(Medical) Method




medical
A medical object that contains the necessary information to perform the grayscale transformation with regard to the DICOM specification.

Glossary Item Box

Permanently levels an 8 through 16-bit gray image to and 8-bit gray image in a manner consistent to the DICOM specification.

Syntax

 
Visual Basic
C#
Managed Extensions for C++
C++/CLI
 
 

Parameters

medical
A medical object that contains the necessary information to perform the grayscale transformation with regard to the DICOM specification.

Exceptions

ExceptionDescription
ProcessorExceptionA processor exception.

Remarks

Some images describe more shades of gray than the human eye can discriminate. It is widely held that 256 shades are discernable. This method uses a range and area of values you are interested in to select the 256 grays.

This method should only be used when the DICOM specific information is available.

In order to further process or save 9-bit to 16-bit grayscale images, this method may need to be called first.

Note: Available in Professional edition.

Example

C#Copy Code
// create the processor class
Accusoft.ImagXpressSdk.Processor processor = new Accusoft.ImagXpressSdk.Processor( );
// associate it with a 8 to 16 bit per pixel image
processor.Image = highGrayImageX;
// create a medical object and fill in the DICOM information explicitly
Accusoft.ImagXpressSdk.Medical medical = new Accusoft.ImagXpressSdk.Medical( );
medical.WindowWidth = 128.0;
medical.WindowCenter = 128.0;
// apply the medical grayscale transform
processor.ApplyGrayscaleTransform( medical );

See Also

©2013. Accusoft Corporation. All Rights Reserved.