Sliding Window and Histogram

조회 수: 8 (최근 30일)
Muffin
Muffin 2012년 9월 27일
Please help me on how to Compute Height of the each Gradient text block.. Consider width,W to be the same as the height,H. With these H and W, how to get one square block? and how to Move this square as a sliding window? after this for each sliding window, how to plot a histogram to choose highest peak. lastly Display all pixel in the highest peak as white pixels in the separate image. I need to implement it using MATLAB. Any help is greatly appreciated! Thamk you!

채택된 답변

Image Analyst
Image Analyst 2012년 9월 27일
You could use blockproc() if you want it to move along in "jumps" (non-overlapping blocks), or you could use nlfilter(). But if your image is, say, a million pixels, do you really want to compute and display a million histograms?

추가 답변 (1개)

Kapil Nagwanshi
Kapil Nagwanshi 2012년 9월 27일
Actually without the variable i wont able to comment or solve for the problem or send the sample data in form of table.
  댓글 수: 3
Image Analyst
Image Analyst 2012년 9월 27일
Of course - use the max() function.
Muffin
Muffin 2012년 9월 27일
After finding the max of the peaks, how do we display a white pixel there?

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

카테고리

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