Method: Magick::Image#equalize
- Defined in:
- ext/RMagick/rmimage.c
#equalize ⇒ Object
Apply a histogram equalization to the image.
Ruby usage:
- @verbatim Image#equalize @endverbatim
5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 |
# File 'ext/RMagick/rmimage.c', line 5576
VALUE
Image_equalize(VALUE self)
{
Image *image, *new_image;
ExceptionInfo exception;
image = rm_check_destroyed(self);
GetExceptionInfo(&exception);
new_image = rm_clone_image(image);
(void) EqualizeImage(new_image);
rm_check_image_exception(new_image, DestroyOnError);
(void) DestroyExceptionInfo(&exception);
return rm_image_new(new_image);
}
|