フィルターのクリア

HOW i can i display a concatenated image in one figure intead of 3*3 figure

1 回表示 (過去 30 日間)
Adel Litim
Adel Litim 2020 年 5 月 15 日
編集済み: Geoff Hayes 2020 年 5 月 15 日
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
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 件)

カテゴリ

Help Center および File ExchangeImage Processing Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by