O2Plib.image
Class PixFunctions

java.lang.Object
  extended by O2Plib.image.PixFunctions

public class PixFunctions
extends java.lang.Object


Constructor Summary
PixFunctions()
          PixFunctions() - constructor
 
Method Summary
 int[] calcHistogram(DbSample dbS, int x1, int y1, int x2, int y2)
          calcHistogram() - compute grayscale histogram from image pixel data for sample dbS.
 int[] calcHistogram(DbSample dbS, Roi roi)
          calcHistogram() - compute grayscale histogram from image pixel data for sample dbS.
static DbSpot calcMeanGrayValue(DbSample dbS, int xC, int yC, int size, DbSpot bkgrdSpot)
          calcMeanGrayValue() - compute mean gray value of spot and return the values in a DbSpot instance for sample dbS with (sp.area, sp.density, sp.xMom, sp.yMom, sp.density, sp.mnDensity, sp.dMax, sp.dMin, sp.sxy) Note: the std-deviation of sp.density is saved in sp.sxy.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PixFunctions

public PixFunctions()
PixFunctions() - constructor

Method Detail

calcMeanGrayValue

public static DbSpot calcMeanGrayValue(DbSample dbS,
                                       int xC,
                                       int yC,
                                       int size,
                                       DbSpot bkgrdSpot)
calcMeanGrayValue() - compute mean gray value of spot and return the values in a DbSpot instance for sample dbS with (sp.area, sp.density, sp.xMom, sp.yMom, sp.density, sp.mnDensity, sp.dMax, sp.dMin, sp.sxy) Note: the std-deviation of sp.density is saved in sp.sxy. Boundary conditions: ...

Parameters:
dbS - is sample to measure with image in char pix[].
xC - current x coordinate
yC - current y coordinate
size - of a side of the square measurement area
bkgrdSpot - is optional background spot with mnDensity
Returns:
DbSpot with features, null if problem

calcHistogram

public int[] calcHistogram(DbSample dbS,
                           Roi roi)
calcHistogram() - compute grayscale histogram from image pixel data for sample dbS. The dynamic range of the histogram is determined by the maximum pixel gray value of the image. Compute the histogram over the region specified by the Roi.

Parameters:
dbS - is the image sample to use
roi - is region of interest to compute the histogram
Returns:
histogram if succeed, else null.

calcHistogram

public int[] calcHistogram(DbSample dbS,
                           int x1,
                           int y1,
                           int x2,
                           int y2)
calcHistogram() - compute grayscale histogram from image pixel data for sample dbS. The dynamic range of the histogram is determined by the maximum pixel gray value of the image. Compute the histogram over the region specified by [x1:x2, y1:y2].

Parameters:
dbS - is the image sample to use
x1 - is X ULHC region, full image if < 0
y1 - is Y ULHC region, full image if < 0
x2 - is X LRHC region, full image if < 0
y2 - is Y LRHC region, full image if < 0
Returns:
histogram if succeed, else null.