Interface Optimizer<I>

  • Type Parameters:
    I - Type of Image wrapped by ImageWrapper
    All Known Implementing Classes:
    OpenCVOptimizer

    public interface Optimizer<I>

    Objects of this interface are used to improve the quality and/or speed of image processing algorithms.

    Since:
    1.0
    Author:
    Christoph Praschl
    • Method Detail

      • optimize

        RotationOffset optimize​(ImageWrapper<I> ref,
                                ImageWrapper<I> current)
        Method for calculating the positional and rotational offset of two images in an optimized way.
        Parameters:
        ref - The image which is used for comparison.
        current - The image which should be compared with ref
        Returns:
        Rotational and Translational offset between ref and current
      • optimize

        RotationOffset optimize​(ImageWrapper<I> ref,
                                ImageWrapper<I> current,
                                int numberOfIterations,
                                int positionalRadius,
                                int rotationalRadius,
                                int stepsOfInterestingPoints,
                                double degressionRate,
                                RGBColor paddingFillColor)
        Method for calculating the positional and rotational offset of two images in an optimized way.
        Parameters:
        ref - The image which is used for comparison.
        current - The image which should be compared with ref
        numberOfIterations - Max. number of iterations which should be done.
        positionalRadius - The search window for positional offset (look between -positionalRadius to +positionRadius. e.g. if image is translated max +/- 10 pixels on x-axis and y-axis)
        rotationalRadius - The search window for rotational offset (look between -rotationalRadius to +rotationalRadius. e.g. if image is translated max +/- 2 degrees)
        stepsOfInterestingPoints - Defines each x points which are interesting for feature detection. E.q. with = 3 just every third point will be used as feature.
        degressionRate - degression of positionalRadius and rotationalRadius per iteration
        paddingFillColor - Color which is used for filling new pixels after padding.
        Returns:
        Rotational and Translational offset between ref and current
      • optimizePositionalOffset

        TranslationOffset optimizePositionalOffset​(ImageWrapper<I> ref,
                                                   ImageWrapper<I> current)
        Method for calculating the offset of two images.
        Parameters:
        ref - The image which is used for comparison.
        current - The image which should be compared with ref
        Returns:
        Rotational and Translational offset between ref and current