Method: Magick::Image#normalize
- Defined in:
- ext/RMagick/rmimage.cpp
#normalize ⇒ Magick::Image
Enhance the contrast of a color image by adjusting the pixels color to span the entire range of colors available.
9969 9970 9971 9972 9973 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989 9990 9991 9992 9993 |
# File 'ext/RMagick/rmimage.cpp', line 9969
VALUE
Image_normalize(VALUE self)
{
Image *image, *new_image;
#if defined(IMAGEMAGICK_7)
ExceptionInfo *exception;
#endif
image = rm_check_destroyed(self);
new_image = rm_clone_image(image);
#if defined(IMAGEMAGICK_7)
exception = AcquireExceptionInfo();
GVL_STRUCT_TYPE(NormalizeImage) args = { new_image, exception };
CALL_FUNC_WITHOUT_GVL(GVL_FUNC(NormalizeImage), &args);
rm_check_exception(exception, new_image, DestroyOnError);
DestroyExceptionInfo(exception);
#else
GVL_STRUCT_TYPE(NormalizeImage) args = { new_image };
CALL_FUNC_WITHOUT_GVL(GVL_FUNC(NormalizeImage), &args);
rm_check_image_exception(new_image, DestroyOnError);
#endif
return rm_image_new(new_image);
}
|