Info
This question is closed. Reopen it to edit or answer.
hi, i'm just a beginner in matlab so can anyone help me in solving this question?
1 view (last 30 days)
Show older comments
A function to extract variables from a rectangular zone in the center of the Image with only 1% of the pixels (1/10 in rows and columns). Shall be Window is displayed with the original image and the sub-section used, and the (1) Average in R, G, B, H, S, V; (2) Standard deviation in R, G, B, H, S, V; (3) Min and Max in R, G, B, H, S, V.
0 Comments
Answers (1)
Walter Roberson
on 15 Mar 2017
[rows, cols, pages] = size(YourImage);
r_10_begin = ceil(0.45) * rows;
r_10_end = ceil(0.55) * rows;
c_10_begin = ceil(0.45) * cols;
c_10_end = ceil(0.55) * cols;
one_percent = YourImage(r_10_begin : r_10_end, c_10_begin : c_10_end, :);
0 Comments
This question is closed.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!