HOW i can i display a concatenated image in one figure intead of 3*3 figure
조회 수: 1 (최근 30일)
이전 댓글 표시
hello evryone , my project is compression image document , first i have to segmente text and background and compresse each one séparately.
i have successfully segment but i have a probleme to display results. THE IMAGE RESULTING IS MULTIPLIED 3*3 , here is my part of my progreme and i will joit my full programme
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/293270/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/293269/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/293270/image.png)
wd = pwd;%pour récupérer l'image de dossier
cd('C:\Users\HP\Desktop\compression\subimavantplan') ; % path to the icons
D = dir;
C = {'.tif';'.jp';'.png';'.bmp'}; % pick all possible images from the path
idx = false(size(D));
for ii = 1:length(C)
idx = idx | (arrayfun(@(x) any(strfind(x.name,C{ii})),D));
end
D = D(idx); % image structure array
L = length(D); % total files
% read the first file
data = imread(D(1).name) ;
wholeBlockCols1=wholeBlockCols;
iwant = data ;
iwant1 =zeros(h1,h2,3);
az=2;
for i1=1:wholeBlockRows
for i2=az:wholeBlockCols1% loop for each image
if (i1==1)
disp(D(2).name) ;
data = imread(D(2).name) ;
iwant = [iwant,data] ; % concatenate columns
else
disp(D(i2).name) ;
data = imread(D(i2).name) ;
iwant = [iwant,data] ; % concatenate columns
disp('row concatenated')
end
end
if (i1==1)
iwant1 = iwant; % concatenate row
az=az+wholeBlockCols;
wholeBlockCols1=wholeBlockCols1+wholeBlockCols;
iwant=zeros(BlockSize,BlockSize,3);
iwant=imread(D(az-1).name) ;
else
iwant1=[iwant1;iwant];
az=az+wholeBlockCols
if(az<=TOTAL_BLOCKS)
if(wholeBlockCols1<=TOTAL_BLOCKS)
wholeBlockCols1=wholeBlockCols1+wholeBlockCols;
iwant=imread(D(az-1).name) ;
end
end
end
end
figure(2)
imshow(iwant1)
title(' image avant plan')
نتائج البحث
نتائج بحث الويب
successfully
نتائج البحث
نتائج بحث الويب
successfully
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!