|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectValidateMeasurementsGroundTruth
public class ValidateMeasurementsGroundTruth
This ImageJ plugIn has been programmed to compare the ROIs constructed by "Vermessung_Nasenfluegel" with a ground truth. For this purpose three pairs of ROIs (left, middle and right wall) are compared and the mean and variance of the differences are computed. Each pair is made up by a ROI computed by "Vermessung_Nasenfluegel" and the corresponding ground truth. As input for this plugIn the IDs of the ROIs w.r.t. the ROIManager are required. If the mean and variance shall be computed w.r.t. pixel distances, then this plugIn does not need to be called with an image. If the mean and variance shall be computed w.r.t. millimeter distances, then this plugIn has to be called with a image corresponding to the ROIs. Right now, only pixels and millimeters are supported as units. The moments are calculated w.r.t. the signed differences as well as the absolute differences. This is essentially an ImageJ Plugin - to use it change the name so that it includes a underline '_'.
Field Summary |
---|
Fields inherited from interface ij.plugin.filter.PlugInFilter |
---|
CONVERT_TO_FLOAT, DOES_16, DOES_32, DOES_8C, DOES_8G, DOES_ALL, DOES_RGB, DOES_STACKS, DONE, FINAL_PROCESSING, KEEP_THRESHOLD, NO_CHANGES, NO_IMAGE_REQUIRED, NO_UNDO, PARALLELIZE_IMAGES, PARALLELIZE_STACKS, ROI_REQUIRED, SNAPSHOT, STACK_REQUIRED, SUPPORTS_MASKING |
Constructor Summary | |
---|---|
ValidateMeasurementsGroundTruth()
|
Method Summary | |
---|---|
double |
calculateMean(int[] values)
Calculates the mean of the given (integer) values. |
double |
calculateVariance(int[] values)
Calculates the variance of the given (integer) values. |
double |
calculateVariance(int[] values,
double mean)
Calculates the variance of the given (integer) values. |
void |
getDifferences()
Calculates the absolute and the signed differences between all values given in xvals[i][0] and xvals[i][1] for i = 0, 1, 2. |
void |
run(ij.process.ImageProcessor ip)
|
void |
run(java.lang.String arg)
|
int |
setup(java.lang.String arg,
ij.ImagePlus imp)
|
boolean |
showDialog()
Opens the dialogue for this plugIn. |
void |
showResultTable()
Method displays the result table and the calculated values for mean and variance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidateMeasurementsGroundTruth()
Method Detail |
---|
public void run(java.lang.String arg)
run
in interface ij.plugin.PlugIn
public int setup(java.lang.String arg, ij.ImagePlus imp)
setup
in interface ij.plugin.filter.PlugInFilter
public void run(ij.process.ImageProcessor ip)
run
in interface ij.plugin.filter.PlugInFilter
public boolean showDialog()
public void getDifferences()
public double calculateMean(int[] values)
values
- An array with Integer values.
public double calculateVariance(int[] values)
values
- An array with integer values.
public double calculateVariance(int[] values, double mean)
values
- An array with integer values.
public void showResultTable()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |