regarding threshold

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
raju

regarding threshold

Post by raju »

What are the options given to threshold and how it works ??
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: regarding threshold

Post by anthony »

Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
nsh
Posts: 27
Joined: 2006-05-16T01:52:23-07:00

Re: regarding threshold

Post by nsh »

I found that using % instead of for example 255,255,255 was wery logic when using function WhiteThresholdImage.

I'm setting all pixels above 250 to white, 250 is 98% of 255.
so my call to WhiteThresholdImage with 98% as threshold , did the job.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: regarding threshold

Post by anthony »

Using percent is preferable as it will work for ALL 'Q' levels of IM.
not just Q8. Basially it is not just a percentage but a floating point specification giving very fine control.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply