필터 지우기
필터 지우기

Histogram and median filters...AGAIN

조회 수: 5 (최근 30일)
Neo
Neo 2014년 12월 31일
댓글: Neo 2015년 1월 2일
Previously I applied a filter to a histogram and attained a slope. I am still waiting for some insight into what the slope might mean in a previous question that I asked. Now I do the same thing (I strongly believe) and now I am getting a horizontal line straight across, can someone tell me what I've possibly done wrong? Or if there's something I'm missing? Thanks, Neo
  댓글 수: 2
per isakson
per isakson 2014년 12월 31일
편집: per isakson 2014년 12월 31일
You should at least provide a link to the previous question. Don't expect us to search.

댓글을 달려면 로그인하십시오.

채택된 답변

Image Analyst
Image Analyst 2015년 1월 1일
Running a median filter on a histogram can smooth out spurious noise spikes and let you get a smoother histogram that's easier to find thresholds on.
The slope might indicates how the number of gray levels changes. If it changes a lot (high slope) then it could indicate that that is a good place for a threshold. Of course a flat slope could also indicate that, like where you threshold in the valley centered between two humps.
You really need to provide some context to get a good answer.
  댓글 수: 9
Image Analyst
Image Analyst 2015년 1월 2일
Statistically it's unlikely that every single possible gray level would have the exact same number of pixels. If you roll a die 24 times, you're not going to get every value of 1-6 exactly 4 times are you? So that natural statistical variation (call it noise if you want) is real and the histogram accurately portrays it (in this case though there are cases where it won't be accurate if you have more bins than pixels you're displaying it on and your bar width is not 1.0).
Neo
Neo 2015년 1월 2일
Wow! You're so amazing! Thanks! I have a better understanding. -Until next time

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Histograms에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by