DevIL Documentation Previous | ILU | Next

 

iluSharpen

 

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.

 

ILboolean iluSharpen(
  ILfloat Factor, ILuint Iter );


Parameters

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


Errors

 
ILU_ILLEGAL_OPERATION
The operation attempted is not allowable in the current state. The function returns with no ill side effects. Generally there is currently no image bound or it has been deleted via ilDeleteImages. You should use ilGenImages and ilBindImage before calling the function.

See Also

 
ilBindImages, ilGenImages, iluBlurAvg, iluBlurGaussian,