>  Docs Center  >  Libraries  >  Salvaggio  >  RMS_EDGE






    This function accepts two images, original and altered. The
    two images must have the same dimensions. The original image
    is converted to luminance, and then an edge mask is
    calculated. The edge mask is found by applying a gradient
    operator, applying a threshold, and then dilating the result.
    The edge mask is applied to both input images, and the RMS
    deviation is found for each channel separately.



Calling Sequence

    Result = RMS_EDGE( original, altered )


      A color or greyscale image to serve as the reference.
      A color or greyscale image to be compared to the reference.

Keyword Parameters


Return Value

    Result is either a scalar (if provided input were greyscale
    images) or a 3-element vecotr (if provided input were color
    images) containing the individual band RMS value in the vicinity
    of edges.
    RETURN, -1
      if no significant edges with magnitude greater than the
      threshold could be found

Side Effects


Modification History

    Written by: Juliet Bernstein
    December, 2007 Original code
    September, 2012 Converted to a general-purpose routine (Carl Salvaggio)


    This source code is provided "as is" and without warranties as to performance
    or merchantability. The author and/or distributors of this source code may
    have made statements about this source code. Any such statements do not
    constitute warranties and shall not be relied on by the user in deciding
    whether to use this source code.
    This source code is provided without any express or implied warranties
    whatsoever. Because of the diversity of conditions and hardware under which
    this source code may be used, no warranty of fitness for a particular purpose
    is offered. The user is advised to test the source code thoroughly before
    relying on it. The user must assume the entire risk of using the source code.

© 2020 Harris Geospatial Solutions, Inc. |  Legal
My Account    |    Store    |    Contact Us