How to smooth a picture histogram

6 ビュー (過去 30 日間)
Clement Roblin
Clement Roblin 2018 年 3 月 21 日
回答済み: Abhishek Ballaney 2018 年 3 月 22 日
Hello,
I have a project at school which the goal is to detect a car with a camera by detecting it color.
For this i use a webcam in RGB and i smooth the histogram with this algorithm :
function y = fcn(u) y= u
for j=1:150 for i=2:255 y(i)=(u(i-1)+u(i)+u(i+1))/3 end end y(1)=y(2); y(256)=y(255);
But my first for is too long and i don't know how to optimize this.
Thanks for help

回答 (1 件)

Abhishek Ballaney
Abhishek Ballaney 2018 年 3 月 22 日
https://in.mathworks.com/help/images/ref/histeq.html

カテゴリ

Help Center および File ExchangeHistograms についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by