motris.algorithm.emcontour
Class ModelSegmentPoint

java.lang.Object
  extended bymotris.algorithm.emcontour.ModelSegmentPoint

public class ModelSegmentPoint
extends java.lang.Object

A Sample Point on the Model Segment where the Discontinuity Location is computed

Author:
dahlkamp

Field Summary
(package private)  double distanceNuImage
           
(package private)  Double2Vector imagePosition
           
 double logLikeLiHood
           
(package private)  java.util.Vector measurePoints
           
(package private)  int measurePointsPerSide
           
(package private)  Double2Vector modelSegmentNormal
           
 double nuHatEstimate
           
(package private)  boolean nuHatEstimateComputed
           
(package private)  double nuHatVarianceEstimate
           
(package private)  ImageEdge onEdge
           
(package private)  double onEdgeIntervalPos
           
(package private)  EMContourMinimizer parent
           
(package private)  Double2Vector[] partialMuPartialState
           
(package private)  boolean partialMuPartialStateComputed
           
(package private)  double sigmaNuImage
           
(package private)  double weight
           
 
Constructor Summary
ModelSegmentPoint(EMContourMinimizer _parent)
           
 
Method Summary
private  void computeNuHatEstimate()
           
private  void computePartialMuPartialState()
           
private  double getAPrioriGrayValueProbability(int KEpos, GrayValueDistribution leftDistri, GrayValueDistribution rightDistri)
           
 Double2Vector getImagePosition()
           
 double getLogLikeLiHood()
           
(package private)  MeasurePoint getMeasurePointAt(int pos)
           
 DoubleVector getNuHatEstimate()
           
 double getNuHatVarianceEstimate()
           
 double[] getPartialLPartialState()
           
 Double2Vector[] getPartialMuPartialState()
          Derivative of \mu=\mu_x, \mu_y=imagePosition with respect to State Vector x (freeparams in actor)
 boolean setPosition(double intervalPos, ImageEdge _onEdge, Double2Vector _modelSegmentNormal, Double4Vector tmp, DoubleArray intersections, double[] tmp2)
          Set Position of ModelSegment point
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

EMContourMinimizer parent

imagePosition

Double2Vector imagePosition

modelSegmentNormal

Double2Vector modelSegmentNormal

onEdge

ImageEdge onEdge

onEdgeIntervalPos

double onEdgeIntervalPos

sigmaNuImage

double sigmaNuImage

distanceNuImage

double distanceNuImage

measurePoints

java.util.Vector measurePoints

measurePointsPerSide

int measurePointsPerSide

weight

double weight

nuHatEstimate

public double nuHatEstimate

nuHatVarianceEstimate

double nuHatVarianceEstimate

logLikeLiHood

public double logLikeLiHood

nuHatEstimateComputed

boolean nuHatEstimateComputed

partialMuPartialState

Double2Vector[] partialMuPartialState

partialMuPartialStateComputed

boolean partialMuPartialStateComputed
Constructor Detail

ModelSegmentPoint

public ModelSegmentPoint(EMContourMinimizer _parent)
Method Detail

getMeasurePointAt

MeasurePoint getMeasurePointAt(int pos)

setPosition

public boolean setPosition(double intervalPos,
                           ImageEdge _onEdge,
                           Double2Vector _modelSegmentNormal,
                           Double4Vector tmp,
                           DoubleArray intersections,
                           double[] tmp2)
Set Position of ModelSegment point

Parameters:
intervalPos - position (percent from start to end coordinates) on the _onEdge
_onEdge -
_modelSegmentNormal - normal to the _onEdge
tmp - 4-dim temporary vector to be overwritten
intersections - temporary array to be overwritten
tmp2 - 2-dim double array to be overwriteen
Returns:
false if adjacent imageEdges are too close so that maxMeasurePointsPerSide would be 0

getImagePosition

public Double2Vector getImagePosition()
Returns:
2D Image Position of this MSP

getAPrioriGrayValueProbability

private double getAPrioriGrayValueProbability(int KEpos,
                                              GrayValueDistribution leftDistri,
                                              GrayValueDistribution rightDistri)

computeNuHatEstimate

private void computeNuHatEstimate()

getNuHatEstimate

public DoubleVector getNuHatEstimate()

getNuHatVarianceEstimate

public double getNuHatVarianceEstimate()

getLogLikeLiHood

public double getLogLikeLiHood()

getPartialLPartialState

public double[] getPartialLPartialState()

computePartialMuPartialState

private void computePartialMuPartialState()

getPartialMuPartialState

public Double2Vector[] getPartialMuPartialState()
Derivative of \mu=\mu_x, \mu_y=imagePosition with respect to State Vector x (freeparams in actor)

Returns:
result as 2 x DOF matrix

toString

public java.lang.String toString()