Class MIFitnessFunction
- java.lang.Object
-
- science.aist.imaging.api.fitnessfunction.AbstractFitnessFunction
-
- science.aist.imaging.core.imageprocessing.fitnessfunction.MIFitnessFunction
-
- All Implemented Interfaces:
ToDoubleBiFunction<ImageWrapper<?>,ImageWrapper<?>>
public class MIFitnessFunction extends AbstractFitnessFunction
Mutual information implementation of a fitness function for a greyscale image
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.api.fitnessfunction.AbstractFitnessFunction
isLowerErrorValueBetter, roi
-
-
Constructor Summary
Constructors Constructor Description MIFitnessFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected double
applyFitness(ImageWrapper<?> imageWrapper, ImageWrapper<?> imageWrapper2, int startX, int startY, int endX, int endY, int channels)
abstract method for applying the actual fitness implementationdouble
getBestPossibleError()
-
Methods inherited from class science.aist.imaging.api.fitnessfunction.AbstractFitnessFunction
applyAsDouble
-
-
-
-
Method Detail
-
applyFitness
protected double applyFitness(ImageWrapper<?> imageWrapper, ImageWrapper<?> imageWrapper2, int startX, int startY, int endX, int endY, int channels)
Description copied from class:AbstractFitnessFunction
abstract method for applying the actual fitness implementation- Specified by:
applyFitness
in classAbstractFitnessFunction
- Parameters:
imageWrapper
- image1 to compareimageWrapper2
- image2 to comparestartX
- start x position of the region of intereststartY
- start y position of the region of interestendX
- end x position of the region of interestendY
- end y position of the region of interestchannels
- number of channels- Returns:
- fitnessvalue
-
getBestPossibleError
public double getBestPossibleError()
- Specified by:
getBestPossibleError
in classAbstractFitnessFunction
- Returns:
- the best possible fitness value
-
-