Plotting Blue Pixel Values against Distance
古いコメントを表示
I have obtained the following blue strip where the ''brightness'' decreases as one moves from left to right.
If the total distance across the strip is normalized to be 1, is there a way in image processing with MATLAB to plot the pixel value as one goes from the far left to the far right, I am trying to show that the pixel value increases linearly with the distance.

6 件のコメント
Davide Masiello
2022 年 3 月 15 日
Could you please share the picture file?
@Davide Masiello: Simply right click on the image and download it.
@Hollis Williams: What do you call "the pixels value"? The pixels are defined as RGB vectors. Which "distance" do you mean? The area has 2 dimensions, so is it the horizontal distance or the euklidean distance from a certain point?
There is some noice in the image. Do you want to remove it at first?
What about converting the colors from RGB to HSV, such that the "brightness" is a scalar for each pixel?
Hollis Williams
2022 年 3 月 15 日
編集済み: Hollis Williams
2022 年 3 月 15 日
Hollis Williams
2022 年 3 月 15 日
Image Analyst
2022 年 3 月 15 日
If you need my code below to work on a different colorspace, then just convert it with the appropriate function. But just let me know if it worked in RGB color space first.
Jan
2022 年 3 月 16 日
Using the euclidean distance to a "certain" point on the left side is useful, if the underlying physikal efffect has a circulare geometry. The distribution along the left side doe not look like this is the case. Image Analyst posted a code using the hroizontal distance and the results look promissing.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Image Arithmetic についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
