DevIL Documentation Home | Previous | Next

iluSharpen

The iluSharpen function sharpens an image.


ILboolean iluSharpen(
  ILfloat Factor,
  ILuint Iter
);

Parameters

Factor
Factor to sharpen by.
Iter
Number of iterations to perform on the image.

Remarks

iluSharpen can actually either sharpen or blur an image, depending on the value of Factor. iluBlurAvg and iluBlurGaussian are much faster for blurring, though. When Factor is 1.0, the image goes unchanged. When Factor is in the range 0.0 - 1.0, the current image is blurred. When Factor is in the range 1.0 - 2.5, the current image is sharpened. To achieve a more pronounced sharpening/blurring effect, simply increase the number of iterations by increasing the value passed in Iter.

Error Codes

ILU_ILLEGAL_OPERATION - There is currently no image bound. Use ilGenImages and ilBindImage before calling this function.

See Also

ilGenImages, ilBindImage, iluBlurAvg, iluBlurGaussian