org.miv.jism.tools.JismTools Class Reference

Some tools which can be used in Jism. More...

List of all members.

Static Public Member Functions

static int log (float b, int x)
 Logarithm.
static Histogram getHistogram (BufferedImage in)
 Get an image histogram.
static Histogram getHistogram (BufferedImage in, boolean log)
 Get an image histogram.
static Histogram getLocalHistogram (JismContext in, boolean log)
 Get an histogram of an image part.
static Histogram getLocalHistogram (JismContext in, int xstart, int ystart, int xend, int yend, boolean log)
 Get an histogram of an image part.
static Histogram getLocalHistogram (JismContext in, int xstart, int ystart, int xend, int yend, int zstart, int zend, boolean log)
 Get an histogram of an image part.
static LinkedList
< Integer > 
searchOptimum (Histogram grays)
 Search the optimums of the histogram.
static LinkedList
< Integer > 
searchOptimum (Histogram grays, int desire)
 Search the optimums of the histogram.


Detailed Description

Some tools which can be used in Jism.

Author:
Guilhelm Savin

Member Function Documentation

static int org.miv.jism.tools.JismTools.log ( float  b,
int  x 
) [static]

Logarithm.

Parameters:
b base of this logarithm
x value
Returns:
log base b of x rounded

static Histogram org.miv.jism.tools.JismTools.getHistogram ( BufferedImage  in  )  [static]

Get an image histogram.

Image must be in gray-mode.

Parameters:
in image
Returns:
the histogram

static Histogram org.miv.jism.tools.JismTools.getHistogram ( BufferedImage  in,
boolean  log 
) [static]

Get an image histogram.

Image must be in gray-mode.

Parameters:
in image
log true if histogram must show logarithmic values
Returns:
the histogram

static Histogram org.miv.jism.tools.JismTools.getLocalHistogram ( JismContext  in,
boolean  log 
) [static]

Get an histogram of an image part.

Image must be in gray-mode.

Parameters:
in image
log true if histogram must show logarithmic values
Returns:
the histogram

static Histogram org.miv.jism.tools.JismTools.getLocalHistogram ( JismContext  in,
int  xstart,
int  ystart,
int  xend,
int  yend,
boolean  log 
) [static]

Get an histogram of an image part.

Image must be in gray-mode.

Parameters:
in image
xstart start x of the part
ystart start y of the part
xend end x of the part
yend end y of the part
log true if histogram must show logarithmic values
Returns:
the histogram

static Histogram org.miv.jism.tools.JismTools.getLocalHistogram ( JismContext  in,
int  xstart,
int  ystart,
int  xend,
int  yend,
int  zstart,
int  zend,
boolean  log 
) [static]

Get an histogram of an image part.

Image must be in gray-mode.

Parameters:
in image
xstart start x of the part
ystart start y of the part
xend end x of the part
yend end y of the part
log true if histogram must show logarithmic values
Returns:
the histogram

static LinkedList<Integer> org.miv.jism.tools.JismTools.searchOptimum ( Histogram  grays  )  [static]

Search the optimums of the histogram.

Parameters:
grays the histogram
Returns:
linked list of optimum values

static LinkedList<Integer> org.miv.jism.tools.JismTools.searchOptimum ( Histogram  grays,
int  desire 
) [static]

Search the optimums of the histogram.

Desired number of optimums can be specified but with no warranty that it will be this !

Parameters:
grays the histogram
desire desired optimums count
Returns:
linked list of optimum values


The documentation for this class was generated from the following file:
Generated on Fri Apr 18 10:49:00 2008 for JisM by  doxygen 1.5.3