mirror of
https://github.com/ImageMagick/ImageMagick.git
synced 2026-05-31 11:18:42 +02:00
correct DPC metric
This commit is contained in:
@@ -2221,6 +2221,7 @@ MagickExport MagickBooleanType GetImageDistortion(Image *image,
|
||||
*distortion=channel_similarity[CompositePixelChannel];
|
||||
switch (metric)
|
||||
{
|
||||
case DotProductCorrelationErrorMetric:
|
||||
case NormalizedCrossCorrelationErrorMetric:
|
||||
case StructuralDissimilarityErrorMetric:
|
||||
case StructuralSimilarityErrorMetric:
|
||||
@@ -2398,6 +2399,7 @@ MagickExport double *GetImageDistortions(Image *image,
|
||||
distortion=channel_similarity;
|
||||
switch (metric)
|
||||
{
|
||||
case DotProductCorrelationErrorMetric:
|
||||
case NormalizedCrossCorrelationErrorMetric:
|
||||
case StructuralDissimilarityErrorMetric:
|
||||
case StructuralSimilarityErrorMetric:
|
||||
|
||||
Reference in New Issue
Block a user