Class AlgorithmLawsTexture

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.awt.event.WindowListener, java.lang.Runnable, java.util.EventListener

    public class AlgorithmLawsTexture
    extends AlgorithmBase
    Author:
    ilb Steps: 1.) 1D masks are multiplied to construct 2D masks. 2.) Remove the effects of illumination by subtracting the neighborhood mean from each pixel in the neighborhood. 3.) Each of the 3 X 3, 5 X 5, or 7 X 7 masks are used to filter a neighborhood of the same size. 4.) Compute the energy of each pixel by summing the absolute values of the filter outputs in the pixel neighborhoods. Symmetric energy pairs, such as E5L5 and L5E5, are averaged together to form one result. References: 1.) Image Processing Dealing with Texture by Maria Petrou and Pedro Garcia-Sevilla, John Wiley & Sons, Ltd., copyright 2006, pp. 539-545 and 564-567. 2.) Computer Vision: March 2000, Chapter 7 Texture, Shapiro and Stockman.
    • Field Detail

      • L3

        private static final int[] L3
        Level 3
      • E3

        private static final int[] E3
        Edge 3
      • S3

        private static final int[] S3
        Spot 3
      • L5

        private static final int[] L5
        Level 5
      • E5

        private static final int[] E5
        Edge 5
      • S5

        private static final int[] S5
        Spot 5
      • W5

        private static final int[] W5
        Wave 5
      • R5

        private static final int[] R5
        Ripple 5
      • L7

        private static final int[] L7
        Level 7
      • E7

        private static final int[] E7
        Edge 7
      • S7

        private static final int[] S7
        Spot 7
      • W7

        private static final int[] W7
        Wave 7
      • R7

        private static final int[] R7
        Ripple 7
      • O7

        private static final int[] O7
        Oscillation 7
      • windowSize

        private int windowSize
        Size of square window must be 3, 5, or 7
      • RGBOffset

        private int RGBOffset
    • Constructor Detail

      • AlgorithmLawsTexture

        public AlgorithmLawsTexture​(ModelImage[] destImg,
                                    ModelImage srcImg,
                                    int windowSize,
                                    int RGBOffset)
        Parameters:
        destImg -
        srcImg -
        windowSize -
        RGBOffset -
    • Method Detail

      • calculateLaws

        private void calculateLaws()
        DOCUMENT ME!