divya taru
自 2016 起处于活动状态
Followers: 0 Following: 0
Feeds
提问
i had converted image into blocks. I converted blocks to linear array. Next i calculated mean values for first 8 arrays. now i want to convert mean values to linear array again. please send suitable code. please don't ignore it. thank u very much.
for i=1:4:16 for j=1:4:16 block=I(i:i+3,j:j+3); %convert 4X4 into 16X1 column vector t...
8 years 前 | 0 个回答 | 0
0
个回答提问
i have 1d array of 16 elements. i need to find index of minimum element of first 2 elements, then index of minimum element of next 2 elements and so on. i used the following coding. but it did not work. please send me the suitable coding.thank u.
if ersum(:,k)<ersum(:,k+1) miner(:,count)=find(ersum(:,k)); %minind=find(miner); else miner(...
8 years 前 | 0 个回答 | 0
0
个回答提问
I reshaped the image elements 256*256 into 16*1 linear array using the following code. There is 16 linear arrays in a variable (ex:tv). Now i need to retrieve the first array of variable (tv). ie, i need tv(1), tv(2)... tv(16). Please say the code.
I=imread('cameraman.tif'); I=double(I); Im=size(I); %find the size of the image [nr nc nd]=size(I); % Divide into blocks d...
9 years 前 | 1 个回答 | 0