WHAT DOES THIS STATEMENT MEAN gray_average_2d(1:m,1:n) = gray_average(1,1:m,1:n);?
1 次查看(过去 30 天)
显示 更早的评论
HERE GRAY_AVERAGE= SUM(GRAY)/8.0; WHERE GRAY IS THE IMAGE...PLEASE EXPLAIN THE CODE MENTIONED ABOVE. AFTER THE ABOVE CODING A NEW VALUE FOR CENTER PIXEL IS CALCULATED USING THE FORMULA BELOW. % gray_contrast = ( 1.0 - s ) * gray_average_2d(:,:) + s * gray;
PLEASE HELP IN EXPLAINING THE SAME..THANKS A LOT
0 个评论
回答(1 个)
David Young
2014-3-3
It means that for every i and j
gray_average_2d(i, j) = gray_average(1, i, j);
provided that i >= 1 and i <= m and j >= 1 and j <= n;
For a fuller explanation, see
doc colon
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Filtering and Enhancement 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!