471,337 Members | 1,224 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,337 software developers and data experts.

Image treshold

Can anyone give me an example how to apply a threshold value to an
image?

(everything above a certain brightness level becomes white, and
everything below the
level becomes black.)

I was told I should use 256-item mapping table and pass it to the
"point" method.

But how should the 256-item mapping table look like, if the threshold
is 18( found from the histogram)
Thank you for any hint.
L.

Nov 10 '07 #1
1 965
Johny wrote:
Can anyone give me an example how to apply a threshold value to an
image?
(everything above a certain brightness level becomes white, and
everything below the level becomes black.)
I was told I should use 256-item mapping table and pass it to the
"point" method.
But how should the 256-item mapping table look like, if the threshold
is 18( found from the histogram)
Sounds like homework. You have the tools, and are close to the answer.
Experiment and look at the results.

-Scott
Nov 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Pierre Tremblay | last post: by
3 posts views Thread by dave | last post: by
2 posts views Thread by Tjerk | last post: by
8 posts views Thread by Jef Driesen | last post: by
6 posts views Thread by QuasiChameleon | last post: by
15 posts views Thread by Anand Ganesh | last post: by
7 posts views Thread by lgbjr | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.