how can I apply radix sort for this code?
古いコメントを表示
clc
clear all
close all
Q75 = [8 6 5 8 12 20 26 31;
6 6 7 10 13 29 30 28;
7 7 8 12 20 29 35 28;
7 9 11 15 26 44 40 31;
9 11 19 28 34 55 52 39;
12 18 28 32 41 52 57 46;
25 32 39 44 52 61 60 52;
36 46 48 49 56 50 52 50 ];
i1=imread('tamp6.jpg');
i2=rgb2gray(i1);
figure,imshow(i2), title('Before Rclose esize');
i2=imresize(i2, [128 128]);
figure, imshow(i2); title('i2');
[row, col] = size(i2);
i2=im2double(i2);
count5=0;
V=zeros(64,1);
counti=0;countj=0;S=zeros(1,2);add2=zeros(size(S));
Blocks2 = cell(row/8,col/8);
for i=1:row-7
counti = counti + 1;
countj = 0;
for j=1:col-7
countj = countj + 1;
Blocks2{i,j} = i2(i:i+7,j:j+7);
count5=count5+1;
D = dctmtx(size(Blocks2{i,j},1));
dct = D*Blocks2{i,j}*D';
3 件のコメント
KALYAN ACHARJYA
2019 年 12 月 1 日
Is there any issue?
sm akash
2019 年 12 月 1 日
Walter Roberson
2019 年 12 月 23 日
What would you be sorting? What radix do you want to use? What is your proposal on how to convert an input number to the given radix?
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!