compare.inc 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. {
  2. Copyright 1999-2005 ImageMagick Studio LLC, a non-profit organization
  3. dedicated to making software imaging solutions freely available.
  4. You may not use this file except in compliance with the License.
  5. obtain a copy of the License at
  6. http://www.imagemagick.org/script/license.php
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. ImageMagick image compare methods.
  13. }
  14. //#include "magick/image.h"
  15. type
  16. MetricType = (
  17. UndefinedMetric,
  18. MeanAbsoluteErrorMetric,
  19. MeanSquaredErrorMetric,
  20. PeakAbsoluteErrorMetric,
  21. PeakSignalToNoiseRatioMetric,
  22. RootMeanSquaredErrorMetric
  23. );
  24. {extern MagickExport Image
  25. *CompareImageChannels(Image *,const Image *,const ChannelType,
  26. const MetricType,double *,ExceptionInfo *),
  27. *CompareImages(Image *,const Image *,const MetricType,double *,
  28. ExceptionInfo *);
  29. extern MagickExport MagickBooleanType
  30. CompareImageCommand(ImageInfo *,int,char **,char **,ExceptionInfo *),
  31. GetImageChannelDistortion(Image *,const Image *,const ChannelType,
  32. const MetricType,double *,ExceptionInfo *),
  33. GetImageDistortion(Image *,const Image *,const MetricType,double *,
  34. ExceptionInfo *),
  35. IsImagesEqual(Image *,const Image *);}