Get data from histogram

조회 수: 1 (최근 30일)
Ali
Ali 2015년 9월 3일
답변: the cyclist 2015년 9월 3일
From a set of data, I want to get 5% or 10% highest figures; and I want to do it based on histogram. The other word, when I plot a histogram of a set of data, I want to get only 5% or 10% of the data in the most right side.
I dont know how I can extract those kind of data.
  댓글 수: 1
Image Analyst
Image Analyst 2015년 9월 3일
Define "get". Do you want a gray level image where all but the 5% brightest pixels are masked to black? Do you want a count of the histogram bins past the 95% point? Exactly what does "get" mean to you?

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

답변 (1개)

the cyclist
the cyclist 2015년 9월 3일
When you say "based on the histogram", that is a bit odd to me. A histogram is a visualization of data. Do you really need that?
If you have the Statistics and Machine Learning Toolbox, you could use the prctile command to find the cutoff, and take elements that are bigger than those.

카테고리

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