Use adjusted with imcontrast tool image

조회 수: 3 (최근 30일)
DIMITRIOS THEODOROPOULOS
DIMITRIOS THEODOROPOULOS 2018년 12월 8일
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개)

카테고리

Help CenterFile Exchange에서 Explore and Edit Images with Image Viewer App에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by