The error using imwrite. how can I fix this?

조회 수: 20 (최근 30일)
Parham Babakhani Dehkordi
Parham Babakhani Dehkordi 2016년 10월 20일
편집: Walter Roberson 2016년 10월 20일
Hi, I want to crop an image and save it using imwrite. I get the following error, how can I fix this:
Error using imwrite
Too many output arguments.
Error in cropping (line 7)
B=imwrite(A,'modified.jpg')
clc;clear all;close all
I=imread('frame1.jpg');
imshow(I)
A=imcrop(I,[14 244 1245 180]);
B=imwrite(A,'modified.jpg')
C=imshow(B)

채택된 답변

KSSV
KSSV 2016년 10월 20일
편집: KSSV 2016년 10월 20일
Dont' take output for imwrite...
clc;clear all;close all
I=imread('frame1.jpg');
imshow(I)
A=imcrop(I,[14 244 1245 180]);
imwrite(A,'modified.jpg')
imshow(A)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by