Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
ImageConverter Class Reference

Public Member Functions

 ImageConverter (ImagePlus imp)
 
synchronized void convertToGray8 ()
 
void convertToGray16 ()
 
void convertToGray32 ()
 
void convertToRGB ()
 
void convertRGBtoIndexedColor (int nColors)
 

Static Public Member Functions

static void setDoScaling (boolean scaleConversions)
 
static boolean getDoScaling ()
 

Detailed Description

This class converts an ImagePlus object to a different type.

Definition at line 10 of file ImageConverter.java.

Constructor & Destructor Documentation

ImageConverter ( ImagePlus  imp)
inline

Constructs an ImageConverter based on an ImagePlus object.

Definition at line 17 of file ImageConverter.java.

Member Function Documentation

void convertRGBtoIndexedColor ( int  nColors)
inline

Converts an RGB image to 8-bits indexed color. 'nColors' must be greater than 1 and less than or equal to 256.

Definition at line 76 of file ImageConverter.java.

void convertToGray16 ( )
inline

Converts this ImagePlus to 16-bit grayscale.

Definition at line 41 of file ImageConverter.java.

void convertToGray32 ( )
inline

Converts this ImagePlus to 32-bit grayscale.

Definition at line 53 of file ImageConverter.java.

synchronized void convertToGray8 ( )
inline

Converts this ImagePlus to 8-bit grayscale.

Definition at line 23 of file ImageConverter.java.

void convertToRGB ( )
inline

Converts this ImagePlus to RGB.

Definition at line 67 of file ImageConverter.java.

static boolean getDoScaling ( )
inlinestatic

Returns true if scaling is enabled.

Definition at line 106 of file ImageConverter.java.

static void setDoScaling ( boolean  scaleConversions)
inlinestatic

Set true to scale to 0-255 when converting short to byte or float to byte and to 0-65535 when converting float to short.

Definition at line 101 of file ImageConverter.java.


The documentation for this class was generated from the following file: