|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectbijnum.BIJmi
registration.SearchMI
public class SearchMI
This class extends BIJmi to provide hooks for the numericalMethods minimization routines package. Copyright (c) 1999-2003, Michael Abramoff. All rights reserved.
| Field Summary | |
|---|---|
float[] |
a
Two images. |
float[] |
b
|
int |
cycles
|
double[] |
p
The parameters that can be set by setDoubleArrayParameter. |
int |
width
|
| Constructor Summary | |
|---|---|
SearchMI(float min,
float max,
float scale,
float[] a,
float[] b,
int width)
Create a new MI search object for images a and b. |
|
| Method Summary | |
|---|---|
double |
getAbsoluteMinimumMI()
Return the absolute minimal MI found along the search. |
double[] |
getAbsoluteMinimumParameters()
Return the parameters corresponding to the absolute minimal MI found along the search. |
int |
getDoubleArrayParameterLength()
Get the length of the double array parameter. |
double |
getDoubleValue()
Required because this class implements nmDoubleValued. |
double |
mi(double[] p)
Compute the mutual information of images a and (b transformed according to p). |
float |
mi(float[] p)
Compute the mutual information of images a and (b transformed according to p). |
void |
setDoubleArrayParameter(double[] p,
int offset)
Required because implements nmDoubleArrayParametrized. |
| Methods inherited from class bijnum.BIJmi |
|---|
getBins, getJointHistogram, getNiceScale, getScale, mi, mi |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float[] a
public float[] b
public int width
public int cycles
public double[] p
| Constructor Detail |
|---|
public SearchMI(float min,
float max,
float scale,
float[] a,
float[] b,
int width)
| Method Detail |
|---|
public int getDoubleArrayParameterLength()
numericalMethods.function.nmDoubleArrayParametrizeddouble array parameter.
getDoubleArrayParameterLength in interface numericalMethods.function.nmDoubleArrayParametrizeddouble array parameter.
public void setDoubleArrayParameter(double[] p,
int offset)
setDoubleArrayParameter in interface numericalMethods.function.nmDoubleArrayParametrizedp - a double[] whith length at least
offset+len holding the values to which the
double array parameter is set.offset - the position in p where the
double array parameter is read from.public double getDoubleValue()
getDoubleValue in interface numericalMethods.function.nmDoubleValuedpublic double mi(double[] p)
p - a double[] with the transformation parameters.
Transformerpublic double getAbsoluteMinimumMI()
public double[] getAbsoluteMinimumParameters()
public float mi(float[] p)
p - a float[] with the transformation parameters.
Transformer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||