Use adjusted with imcontrast tool image
조회 수: 3 (최근 30일)
이전 댓글 표시
I dont know how to use the image which is adjusted from imcontrast tool. I take my original photo(image1) and then i turn to gray and open the imcontrast tool.
I intend to crop the new adjusted image.How can i do it? I tried this but doesn't work
clear all;
clc;
imtool close all;
getfile = uigetfile('*.jpg','Pick an image');
image1=imread(getfile);
image2=rgb2gray(image1);
h1 = figure;
imshow(image2);
h=imcontrast(h1)
f = sprintf('Begin by choosing the desired values for contrast .\n Then select a ROI and double click to crop');
uiwait(warndlg(f));
[cropped, rect] = imcrop(h);
댓글 수: 0
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!