Filters

If you have any doubts on how to use this, make sure you read our Getting Started guide.

  • :options is one of the fragments available for use on ImageBoss API.

Threshold

Any pixel value greather than or equal to the threshold value will be set to 255, otherwise it will be set to 0. Thresholding is the simplest method of image segmentation. From a grayscale image, thresholding can be used to create binary images. You can combine this option with any operation available.

threshold accepts two values. :amount which is any value between 1 and 255. and :grayscale which is a boolean.

Example

https://img.imageboss.me /with /700 /threshold:125 /http://imageboss.me/examples/05.jpg


https://img.imageboss.me /with /700 /threshold:125-true /http://imageboss.me/examples/05.jpg


Original

Modified

Modified (grayscale: true)