Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Generate a ladder with known band intensity

1 回表示 (過去 30 日間)
Tung Le
Tung Le 2017 年 8 月 20 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
I have a intensity profile with multiple peaks. I want to construct an ladder-like image with bands that represent the intensity profile. The thickness and color of the bands should be proportional to the intensity (black and thick bands mean stronger intensity, gray bands mean weaker instensity). How should I achieve this task? Thank you!

回答 (2 件)

Nate
Nate 2017 年 8 月 22 日
Hello Tung,
The "imhist" function might be close enough to what you are looking for. It can plot a histogram across intensities, but the bands themselves are not given different weights. Instead they are drawn as bars of different heights.
Nate

Image Analyst
Image Analyst 2017 年 8 月 22 日
You can get a mean profile across your image vertically or horizontally with mean.
meanVerticalProfile = mean(grayImage, 2);
meanHorizontalProfile = mean(grayImage, 1);
Not sure what to do after that because you forgot to attach your image. Please do that as well as attaching what you'd like to obtain as an output image.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by