plz explain the code

2 views (last 30 days)
zakir khan
zakir khan on 28 Sep 2018
Commented: Image Analyst on 28 Sep 2018
img_clahe = zeros(size(img));
for color_idx = 1:3
img_clahe(:,:,color_idx) = adapthisteq(img(:,:,color_idx));
end
  2 Comments
Guillaume
Guillaume on 28 Sep 2018
You already asked then deleted this question.
I will ask the same question back: which part of the code can you not understand by looking it up in the documentation.
zakir khan
zakir khan on 28 Sep 2018
this function is clear but i have confusion here img_clahe(:,:,color_idx)

Sign in to comment.

Accepted Answer

Guillaume
Guillaume on 28 Sep 2018
img_clahe(:,:,color_idx) corresponds to each colour channel of the image.
  1 Comment
Image Analyst
Image Analyst on 28 Sep 2018
You forgot to mention that the code is doing a really dumb, worthless thing, unless you want bizarre color artifacts.

Sign in to comment.

More Answers (1)

Steven Lord
Steven Lord on 28 Sep 2018
Based on the questions you've been asking it seems like you're new to MATLAB or it's been some time since you last used it. In either of those cases I recommend going through some of the tutorials that will teach you the basic functionality of MATLAB and/or Simulink (depending which tutorials you take.) There are interactive courses to take, documentation pages to read, and videos to watch all on that page.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!