MATLAB Answers

adaptive local global thresholding

11 views (last 30 days)
Matpar
Matpar on 7 Aug 2019
Answered: Kritika Bansal on 20 Aug 2019
Hi all trying to figure out how to do a simple adaptive and a local thresholding for T=[30,25,67,49,96]
can someone guide me ASAP with a simple thresholding code that can do this?
please!!
Thanks

  4 Comments

Show 1 older comment
Matpar
Matpar on 7 Aug 2019
Hi Rik, how do i flag my questions as urgent as i really trying to get this done quickly!
send me some steps please!
Rik
Rik on 7 Aug 2019
Comment posted as answer by Matpar:
ok my apologies and thanks for responding! i am trying to gain an understanding for what is actually happening within the codes!!
Rik
Rik on 7 Aug 2019
You don't flag your questions as urgent. If you need it done so fast that you can't wait for free help, you need to hire a consultant. I doubt your course started with the practical you posted here. I would suggest you look at the instructions you already had and don't doublepost questions.
Also, using a lot of exclamation points comes across as shouty and rude. It probably discourages people from helping you, just like using phrases like 'ASAP' and 'please help me fast'. Your bad planning is your problem, don't push others if you started late. If the amount of time for your practical is unreasonable, talk to your teacher, and if he/she is unreasonable, talk to the dean.
You posted 4 questions in about 3 days and have gotten multiple comments and answers. You are not being ignored.

Sign in to comment.

Answers (1)

Kritika Bansal
Kritika Bansal on 20 Aug 2019
Hi,
To perform adaptive thresholding, you can use imbinarize in combination with adaptthresh function of MATLAB as follows:
T = adaptthresh(I);
BW = imbinarize(I, T);
The above 2 steps can also be combined into a single step as:
BW = imbinarize(I, adaptive);
If you have an RGB image, you may need to convert it to grayscale using rgb2gray() function and then use imbinarize. This is because imbinarize doesn’t binarize ever channel separately.
For more information on these two functions, you can refer to the documentation links below:

  0 Comments

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by