필터 지우기
필터 지우기

Error while performing the operation but not while reading the images in folders.

조회 수: 1 (최근 30일)
While just reading the images its working fine but while doing encode operation its throwing error. But the encode operation is working fine for single images. Please help me where i am doing wrong.
function ret()
myfolder = ('D:\imagesa\**');
filePattern = fullfile(myfolder, '*.tif');
theFiles = dir(filePattern);
for k =1 : length(theFiles)
%baseFileName = theFiles(k).name;
fullFileName = fullfile(theFiles(k).folder,theFiles(k).name);
fprintf(1, 'Now reading %s\n', fullFileName);
i = imread(fullFileName);
encode_HTJ2K(fullFileName,i,1);
end

답변 (1개)

yanqi liu
yanqi liu 2021년 11월 26일
sir,may be upload encode_HTJ2K.m to do some analysis
or check the image dim if ask for gray image,please use rgb2gray to make it to gray

카테고리

Help CenterFile Exchange에서 Image Segmentation and Analysis에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by