Borrar filtros
Borrar filtros

The error using imwrite. how can I fix this?

3 visualizaciones (últimos 30 días)
Parham Babakhani Dehkordi
Parham Babakhani Dehkordi el 20 de Oct. de 2016
Editada: Walter Roberson el 20 de Oct. de 2016
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)

Respuesta aceptada

KSSV
KSSV el 20 de Oct. de 2016
Editada: KSSV el 20 de Oct. de 2016
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)

Más respuestas (0)

Categorías

Más información sobre Read, Write, and Modify Image en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by