Class ImageContrast

    • Method Detail

      • fire

        public void fire()
                  throws IllegalActionException
        Fire the actor. Consume one image on the input port. Summary: Contrast the image so that an more evenly color distributed image can be obtained. Assume that color is bounded from 0 to 255 inclusively.
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - If image color is out-of-bound. Algorithm: Construct a color histogram for the input image. Construct a cdf for the color histogram. Using Gray Scale Equalization, re-map each image pixel color. Send the new image out the output port.