DESY ACOP Beans Home

de.desy.acop.video.analysis
Class AnalyzedImage

java.lang.Object
  extended by de.desy.acop.video.analysis.AnalyzedImage

Deprecated. not used anymore; relevant things moved to ImageAnalysisEngine.

@Deprecated
public class AnalyzedImage
extends java.lang.Object

AnalyzedImage is a wrapper for the image, which provides statistical parameters of the supplied image. This class accepts an intensity image (given at construction) and performs statistical analysis. The calculated values can be obtained through the getter methods for each of the specific calculated parameters.

Author:
Jaka Bobnar

Constructor Summary
AnalyzedImage(ColorDecoder decoder, int[] image, int scan, int x, int y, int w, int h, double threshold)
          Deprecated. Constructs a new AnalyzedImage, which accepts an image matrix.
 
Method Summary
 double getAmplitude2D()
          Deprecated. Returns the maximum pixel value (as returned by ColorDecoder assigned to this AnalyzedImage) across the entire image.
 double getAngle2D()
          Deprecated. Returns the angle of rotation of the 2-dimensional intensity profile around its center (the angle between x and a and y and b axes).
 double getConst2D()
          Deprecated. Returns the minimum pixel value (as returned by ColorDecoder assigned to this AnalyzedImage) across the entire image.
 int[] getImage()
          Deprecated. Returns the intensity image, which was analyzed by this class.
 double getMeanX()
          Deprecated. Returns the mean value of the side view projection of the image on the x axis.
 double getMeanY()
          Deprecated. Returns the mean value of the side view projection of the image on the y axis.
 int getROIH()
          Deprecated. The height of the region of interest.
 int getROIW()
          Deprecated. The width of the region of interest.
 int getROIX()
          Deprecated. Left coordinate of the region of interest.
 int getROIY()
          Deprecated. Upper coordinate of the region of interest.
 int getScan()
          Deprecated. Returns the width of the row in the image matrix (the matrix is combined into a single array returned by getImage());
 double getSideViewAmplitudeX()
          Deprecated. Returns the amplitude (maximum minus minimum) value of the side view projection of the image on the x axis.
 double getSideViewAmplitudeY()
          Deprecated. Returns the amplitude (maximum minus minimum) value of the side view projection of the image on the y axis.
 double getSideViewConstX()
          Deprecated. Returns the constant (minimum) value of the side view projection of the image on the x axis.
 double getSideViewConstY()
          Deprecated. Returns the constant (minimum) value of the side view projection of the image on the y axis.
 double[] getSideViewX()
          Deprecated. Returns the array representing the side projection of the intensity image on the X axis.
 double[] getSideViewY()
          Deprecated. Returns the array representing the side projection of the intensity image on the Y axis.
 double getStdA()
          Deprecated. Returns the standard deviation of the 2-dimensional intensity image in the direction of the "a" axis of the profile (assuming an elliptical profile).
 double getStdB()
          Deprecated. Returns the standard deviation of the 2-dimensional intensity image in the direction of the "b" axis of the profile (assuming an elliptical profile).
 double getStdX()
          Deprecated. Returns the standard deviation of the side view projection of the image on the x axis.
 double getStdY()
          Deprecated. Returns the standard deviation of the side view projection of the image on the y axis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnalyzedImage

public AnalyzedImage(ColorDecoder decoder,
                     int[] image,
                     int scan,
                     int x,
                     int y,
                     int w,
                     int h,
                     double threshold)
              throws java.lang.Exception
Deprecated. 
Constructs a new AnalyzedImage, which accepts an image matrix. The provided image describes the intensity of pixels in a 2D image. This image will be analyzed for statistical parameters and will not be changed in any way during the analysis. Only the region given by the additional parameters will be analyzed (region of interest is always a rectangle).

Parameters:
decoder - the ColorDecoder to be used for transforming the TYPE_INT_ARGB integer color code into a meaningful double value
image - the image represented by an array of intensity values. Consider this array to be an intensity image matrix combined into a single array one row after another
scan - the length of a single row in the image matrix
x - region of interest left coordinate
y - region of interest upper coordinate
w - the width of the region of interest
h - the height of the region of interest
threshold - the threshold below which all values are neglected
Throws:
java.lang.Exception
Method Detail

getImage

public int[] getImage()
Deprecated. 
Returns the intensity image, which was analyzed by this class. The statistical parameters of this AnalyzedImage match the image returned by this method. This is a 2D intensity matrix concatenated row-by-row into a 1-dimensional array.

Returns:
the original image

getScan

public int getScan()
Deprecated. 
Returns the width of the row in the image matrix (the matrix is combined into a single array returned by getImage());

Returns:

getROIH

public int getROIH()
Deprecated. 
The height of the region of interest.

Returns:
the height

getROIW

public int getROIW()
Deprecated. 
The width of the region of interest.

Returns:
the width

getROIX

public int getROIX()
Deprecated. 
Left coordinate of the region of interest.

Returns:
the left coordinate

getROIY

public int getROIY()
Deprecated. 
Upper coordinate of the region of interest.

Returns:
the upper coordinate

getStdA

public double getStdA()
Deprecated. 
Returns the standard deviation of the 2-dimensional intensity image in the direction of the "a" axis of the profile (assuming an elliptical profile).

Returns:
the standard deviation in a direction
See Also:
#getImage()}

getStdB

public double getStdB()
Deprecated. 
Returns the standard deviation of the 2-dimensional intensity image in the direction of the "b" axis of the profile (assuming an elliptical profile).

Returns:
the standard deviation in b direction
See Also:
#getImage()}

getAngle2D

public double getAngle2D()
Deprecated. 
Returns the angle of rotation of the 2-dimensional intensity profile around its center (the angle between x and a and y and b axes).

Returns:
the angle of rotation of the 2-dimensional intensity profile
See Also:
#getImage()}

getConst2D

public double getConst2D()
Deprecated. 
Returns the minimum pixel value (as returned by ColorDecoder assigned to this AnalyzedImage) across the entire image. This value represents the background of the image.

Returns:
the constant value of the intensity profile
See Also:
#getImage()}

getAmplitude2D

public double getAmplitude2D()
Deprecated. 
Returns the maximum pixel value (as returned by ColorDecoder assigned to this AnalyzedImage) across the entire image.

Returns:
the amplitude
See Also:
#getImage()}

getSideViewX

public double[] getSideViewX()
Deprecated. 
Returns the array representing the side projection of the intensity image on the X axis.

Returns:
the projection on the x axis
See Also:
#getImage()}

getSideViewY

public double[] getSideViewY()
Deprecated. 
Returns the array representing the side projection of the intensity image on the Y axis.

Returns:
the projection on the y axis
See Also:
#getImage()}

getStdX

public double getStdX()
Deprecated. 
Returns the standard deviation of the side view projection of the image on the x axis. This is calculated from the values returned by the getSideViewX().

Returns:
the standard deviation

getStdY

public double getStdY()
Deprecated. 
Returns the standard deviation of the side view projection of the image on the y axis. This is calculated from the values returned by the getSideViewY().

Returns:
the standard deviation

getMeanX

public double getMeanX()
Deprecated. 
Returns the mean value of the side view projection of the image on the x axis. This is calculated from the values returned by the getSideViewX().

Returns:
the mean value

getMeanY

public double getMeanY()
Deprecated. 
Returns the mean value of the side view projection of the image on the y axis. This is calculated from the values returned by the getSideViewY().

Returns:
the mean value

getSideViewAmplitudeX

public double getSideViewAmplitudeX()
Deprecated. 
Returns the amplitude (maximum minus minimum) value of the side view projection of the image on the x axis. This is calculated from the values returned by the getSideViewX().

Returns:
the amplitude

getSideViewAmplitudeY

public double getSideViewAmplitudeY()
Deprecated. 
Returns the amplitude (maximum minus minimum) value of the side view projection of the image on the y axis. This is calculated from the values returned by the getSideViewY().

Returns:
the amplitude

getSideViewConstX

public double getSideViewConstX()
Deprecated. 
Returns the constant (minimum) value of the side view projection of the image on the x axis. This is calculated from the values returned by the getSideViewX().

Returns:
the constant

getSideViewConstY

public double getSideViewConstY()
Deprecated. 
Returns the constant (minimum) value of the side view projection of the image on the y axis. This is calculated from the values returned by the getSideViewY().

Returns:
the constant


Copyright © 2010. All Rights Reserved.