MATLAB Answers

How to crop the circular ROI (already done) from the image ? I want to eliminate the black background for calculating average RGB values, so that i can calculate average luminance from the image.

4 views (last 30 days)
veena mathew
veena mathew on 12 Feb 2021
Commented: Omer Akatekin on 22 Mar 2021
clear all
clc
hdr=hdrread('testfile.hdr');
rgb=tonemap(hdr);
figure;
imshow(rgb)
roi = drawcircle('Center',[400 400],'Radius',398);
BW=createMask(roi);
  1 Comment
Omer Akatekin
Omer Akatekin on 22 Mar 2021
Are you doing for tunnel lighting access zone calculation ? because it seems to what i am trying to design app for these nowadays

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!