Class PSNR

    • Field Detail

      • distortedSignal

        public TypedIOPort distortedSignal
        A distorted version of the input signal.
      • output

        public TypedIOPort output
        The calculated PSNR between the two inputs.
    • Method Detail

      • fire

        public void fire()
                  throws IllegalActionException
        Fire the actor. Consume one image on each of the input ports. Calculate the PSNR as follows: noise = signal-distortedSignal; signalPower = Power(signal); noisePower = Power(noise); PSNR = 10 * log10(signalPower/noisePower);
        Specified by:
        fire in interface Executable
        Overrides:
        fire in class AtomicActor<TypedIOPort>
        Throws:
        IllegalActionException - If the dimensions of the input tokens do not match.