|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.algorithms.manual_label.atlasing.LogOdds
public class LogOdds
Constructor Summary | |
---|---|
LogOdds()
|
Method Summary | |
---|---|
static int[] |
getNonNormalizedVector(int numlabs,
int indNorm)
Helper method used in Logit and iLogit methods |
static float[][][][] |
InvLogit(float[][][][] logodds,
int indNorm,
boolean fourthDimLab)
Computes the probability map corresponding to a point in Log-Odds space The probabilities for each label should be stored in the 4th dimension of the input array. |
static ImageDataFloat |
InvLogit(ImageData logodds,
int indNorm,
boolean fourthDimLab,
java.lang.String name)
Computes the probability map corresponding to a point in Log-Odds space The probabilities for each label should be stored in the 4th dimension of the input array. |
static float[][][][] |
Logit(float[][][][] probAtlas,
int indNorm,
float eps,
boolean fourthDimLab)
Computes the Log-Odds of probability maps of labels. |
static ImageDataFloat |
Logit(ImageData probAtlas,
int indNorm,
float eps,
boolean fourthDimLab,
java.lang.String name,
java.io.File dir)
Computes the Log-Odds of probability maps of labels. |
static void |
normalize(ImageData a,
boolean fourthDim)
|
static void |
zeroToEpsilon(ImageData a,
float epsilon,
boolean fourthDim)
Converts all zeros in an image data to epsilon. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LogOdds()
Method Detail |
---|
public static float[][][][] Logit(float[][][][] probAtlas, int indNorm, float eps, boolean fourthDimLab)
probAtlas
- The input Probability mapindNorm
- Normalizing IndexfourthDimLab
- Are the labels stored in the fourth dimension? If this is false,
the method assumes that labels are stored across the first dimension.
public static ImageDataFloat Logit(ImageData probAtlas, int indNorm, float eps, boolean fourthDimLab, java.lang.String name, java.io.File dir)
probAtlas
- The input Probability mapindNorm
- Normalizing IndexfourthDimLab
- Are the labels stored in the fourth dimension? If this is false,
the method assumes that labels are stored across the first dimension.
public static float[][][][] InvLogit(float[][][][] logodds, int indNorm, boolean fourthDimLab)
logodds
- The input Log-OddsindNorm
- Normalizing IndexfourthDimLab
- Are the labels stored in the fourth dimension? If this is false,
the method assumes that labels are stored across the first dimension.
public static ImageDataFloat InvLogit(ImageData logodds, int indNorm, boolean fourthDimLab, java.lang.String name)
logodds
- The input Log-OddsindNorm
- Normalizing IndexfourthDimLab
- Are the labels stored in the fourth dimension? If this is false,
the method assumes that labels are stored across the first dimension.
public static int[] getNonNormalizedVector(int numlabs, int indNorm)
numlabs
- total number of labelsindNorm
- index of label used as normalizer
public static void zeroToEpsilon(ImageData a, float epsilon, boolean fourthDim)
a
- the input ImageDatapublic static void normalize(ImageData a, boolean fourthDim)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |