ExceptionInfo *exception)
{
#define ContrastStretchImageTag "ContrastStretch/Image"
-#define MaxRange(color) ((MagickRealType) ScaleQuantumToMap((Quantum) (color)))
+#define MaxRange(color) ((cl_float) ScaleQuantumToMap((Quantum) (color)))
CacheView
*image_view;
if (intensity > black_point)
break;
}
- black.x=(MagickRealType) i;
+ black.x=(cl_float) i;
intensity=0.0;
for (i=(ssize_t) MaxMap; i != 0; i--)
{
if (intensity > ((double) image->columns*image->rows-white_point))
break;
}
- white.x=(MagickRealType) i;
+ white.x=(cl_float) i;
}
black.y=0.0;
white.y=MaxRange(QuantumRange);
if (intensity > black_point)
break;
}
- black.y=(MagickRealType) i;
+ black.y=(cl_float) i;
intensity=0.0;
for (i=(ssize_t) MaxMap; i != 0; i--)
{
if (intensity > ((double) image->columns*image->rows-white_point))
break;
}
- white.y=(MagickRealType) i;
+ white.y=(cl_float) i;
}
black.z=0.0;
white.z=MaxRange(QuantumRange);
if (intensity > black_point)
break;
}
- black.z=(MagickRealType) i;
+ black.z=(cl_float) i;
intensity=0.0;
for (i=(ssize_t) MaxMap; i != 0; i--)
{
if (intensity > ((double) image->columns*image->rows-white_point))
break;
}
- white.z=(MagickRealType) i;
+ white.z=(cl_float) i;
}
black.w=0.0;
white.w=MaxRange(QuantumRange);
if (intensity > black_point)
break;
}
- black.w=(MagickRealType) i;
+ black.w=(cl_float) i;
intensity=0.0;
for (i=(ssize_t) MaxMap; i != 0; i--)
{
if (intensity > ((double) image->columns*image->rows-white_point))
break;
}
- white.w=(MagickRealType) i;
+ white.w=(cl_float) i;
}
stretch_map=(PixelPacket *) AcquireQuantumMemory(MaxMap+1UL,
Support too small even for nearest neighbour: Reduce to point
sampling.
*/
- support=(MagickRealType) 0.5;
+ support=(float) 0.5;
scale=1.0;
}
scale=PerceptibleReciprocal(scale);
Support too small even for nearest neighbour: Reduce to point
sampling.
*/
- support=(MagickRealType) 0.5;
+ support=(float) 0.5;
scale=1.0;
}
scale=PerceptibleReciprocal(scale);
goto cleanup;
}
- theta=DegreesToRadians(angle)/(MagickRealType) (cossin_theta_size-1);
- offset=theta*(MagickRealType) (cossin_theta_size-1)/2.0;
+ theta=DegreesToRadians(angle)/(double) (cossin_theta_size-1);
+ offset=theta*(float) (cossin_theta_size-1)/2.0;
for (i=0; i < (ssize_t) cossin_theta_size; i++)
{
cosThetaPtr[i]=(float)cos((double) (theta*i-offset));