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.

2 views (last 30 days)
clear all
clc
hdr=hdrread('testfile.hdr');
rgb=tonemap(hdr);
figure;
imshow(rgb)
roi = drawcircle('Center',[400 400],'Radius',398);
BW=createMask(roi);

Answers (1)

Abhishek Gupta
Abhishek Gupta on 15 Feb 2021
Hi,
Referring to the following MATLAB Answer, which might help you in resolving the issue: -

Community Treasure Hunt

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

Start Hunting!