www.pudn.com > Block-Based_Image_Steganalysis_v1.zip > classify_block.m, change:2010-09-01,size:7791b


function [ cover01, cover02, cover03, cover04, cover05, cover06, cover07, cover08, ... 
           cover09, cover10, cover11, cover12, cover13, cover14, cover15, cover16, ... 
           cover17, cover18, cover19, cover20, cover21, cover22, cover23, cover24, ... 
           cover25, cover26, cover27, cover28, cover29, cover30, cover31, cover32, ... 
           stego01, stego02, stego03, stego04, stego05, stego06, stego07, stego08, ... 
           stego09, stego10, stego11, stego12, stego13, stego14, stego15, stego16, ... 
           stego17, stego18, stego19, stego20, stego21, stego22, stego23, stego24, ... 
           stego25, stego26, stego27, stego28, stego29, stego30, stego31, stego32 ] ... 
         = classify_block ( CLASS_NO, random_sample, final_centroids, image_number, TOTAL_SAMPLE, sample_no ) 
block_no = sample_no; 
cover01 = [];   cover02 = [];   cover03 = [];   cover04 = [];   cover05 = [];   cover06 = [];   cover07 = [];   cover08 = []; 
cover09 = [];   cover10 = [];   cover11 = [];   cover12 = [];   cover13 = [];   cover14 = [];   cover15 = [];   cover16 = []; 
cover17 = [];   cover18 = [];   cover19 = [];   cover20 = [];   cover21 = [];   cover22 = [];   cover23 = [];   cover24 = []; 
cover25 = [];   cover26 = [];   cover27 = [];   cover28 = [];   cover29 = [];   cover30 = [];   cover31 = [];   cover32 = []; 
stego01 = [];   stego02 = [];   stego03 = [];   stego04 = [];   stego05 = [];   stego06 = [];   stego07 = [];   stego08 = []; 
stego09 = [];   stego10 = [];   stego11 = [];   stego12 = [];   stego13 = [];   stego14 = [];   stego15 = [];   stego16 = []; 
stego17 = [];   stego18 = [];   stego19 = [];   stego20 = [];   stego21 = [];   stego22 = [];   stego23 = [];   stego24 = []; 
stego25 = [];   stego26 = [];   stego27 = [];   stego28 = [];   stego29 = [];   stego30 = [];   stego31 = [];   stego32 = []; 
for image_index = 1 : image_number 
    for block_index = 1:block_no 
        block_feature_cover = random_sample ( (image_index-1)*block_no*2 + block_index, : ); 
        block_feature_stego = random_sample ( (image_index-1)*block_no*2 + block_index + block_no, : );         
        euclidean_distance = []; 
    	% Euclidean Distance = cover + stego!!! 
        for centroids_index = 1:CLASS_NO 
%             euclidean_distance ( centroids_index ) ... 
%             = sqrt ( sum ( ( block_feature_cover - final_centroids( centroids_index, : ) ).^2 ) ) ... 
%             + sqrt ( sum ( ( block_feature_stego - final_centroids( centroids_index, : ) ).^2 ) ); 
            % 11-18-2009 
            euclidean_distance ( centroids_index ) ... 
            = sum ( ( block_feature_cover - final_centroids( centroids_index, : ) ).^2 ) ... 
            + sum ( ( block_feature_stego - final_centroids( centroids_index, : ) ).^2 ); 
        end 
    	[ result, order ] = sort ( euclidean_distance ); 
		switch order(1) 
		    case  1,    cover01( size(cover01,1)+1, : ) = block_feature_cover; 
		    case  2,    cover02( size(cover02,1)+1, : ) = block_feature_cover; 
		    case  3,    cover03( size(cover03,1)+1, : ) = block_feature_cover; 
		    case  4,    cover04( size(cover04,1)+1, : ) = block_feature_cover; 
		    case  5,    cover05( size(cover05,1)+1, : ) = block_feature_cover; 
		    case  6,    cover06( size(cover06,1)+1, : ) = block_feature_cover; 
		    case  7,    cover07( size(cover07,1)+1, : ) = block_feature_cover; 
		    case  8,    cover08( size(cover08,1)+1, : ) = block_feature_cover; 
		    case  9,    cover09( size(cover09,1)+1, : ) = block_feature_cover; 
		    case 10,    cover10( size(cover10,1)+1, : ) = block_feature_cover; 
		    case 11,    cover11( size(cover11,1)+1, : ) = block_feature_cover; 
		    case 12,    cover12( size(cover12,1)+1, : ) = block_feature_cover; 
		    case 13,    cover13( size(cover13,1)+1, : ) = block_feature_cover; 
		    case 14,    cover14( size(cover14,1)+1, : ) = block_feature_cover; 
		    case 15,    cover15( size(cover15,1)+1, : ) = block_feature_cover; 
		    case 16,    cover16( size(cover16,1)+1, : ) = block_feature_cover; 
		    case 17,    cover17( size(cover17,1)+1, : ) = block_feature_cover; 
		    case 18,    cover18( size(cover18,1)+1, : ) = block_feature_cover; 
		    case 19,    cover19( size(cover19,1)+1, : ) = block_feature_cover; 
		    case 20,    cover20( size(cover20,1)+1, : ) = block_feature_cover; 
		    case 21,    cover21( size(cover21,1)+1, : ) = block_feature_cover; 
		    case 22,    cover22( size(cover22,1)+1, : ) = block_feature_cover; 
		    case 23,    cover23( size(cover23,1)+1, : ) = block_feature_cover; 
		    case 24,    cover24( size(cover24,1)+1, : ) = block_feature_cover; 
		    case 25,    cover25( size(cover25,1)+1, : ) = block_feature_cover; 
		    case 26,    cover26( size(cover26,1)+1, : ) = block_feature_cover; 
		    case 27,    cover27( size(cover27,1)+1, : ) = block_feature_cover; 
		    case 28,    cover28( size(cover28,1)+1, : ) = block_feature_cover; 
		    case 29,    cover29( size(cover29,1)+1, : ) = block_feature_cover; 
		    case 30,    cover30( size(cover30,1)+1, : ) = block_feature_cover; 
		    case 31,    cover31( size(cover31,1)+1, : ) = block_feature_cover; 
		    case 32,    cover32( size(cover32,1)+1, : ) = block_feature_cover 
        end 
		switch order(1) 
		    case  1,    stego01( size(stego01,1)+1, : ) = block_feature_stego; 
		    case  2,    stego02( size(stego02,1)+1, : ) = block_feature_stego; 
		    case  3,    stego03( size(stego03,1)+1, : ) = block_feature_stego; 
		    case  4,    stego04( size(stego04,1)+1, : ) = block_feature_stego; 
		    case  5,    stego05( size(stego05,1)+1, : ) = block_feature_stego; 
		    case  6,    stego06( size(stego06,1)+1, : ) = block_feature_stego; 
		    case  7,    stego07( size(stego07,1)+1, : ) = block_feature_stego; 
		    case  8,    stego08( size(stego08,1)+1, : ) = block_feature_stego; 
		    case  9,    stego09( size(stego09,1)+1, : ) = block_feature_stego; 
		    case 10,    stego10( size(stego10,1)+1, : ) = block_feature_stego; 
		    case 11,    stego11( size(stego11,1)+1, : ) = block_feature_stego; 
		    case 12,    stego12( size(stego12,1)+1, : ) = block_feature_stego; 
		    case 13,    stego13( size(stego13,1)+1, : ) = block_feature_stego; 
		    case 14,    stego14( size(stego14,1)+1, : ) = block_feature_stego; 
		    case 15,    stego15( size(stego15,1)+1, : ) = block_feature_stego; 
		    case 16,    stego16( size(stego16,1)+1, : ) = block_feature_stego; 
		    case 17,    stego17( size(stego17,1)+1, : ) = block_feature_stego; 
		    case 18,    stego18( size(stego18,1)+1, : ) = block_feature_stego; 
		    case 19,    stego19( size(stego19,1)+1, : ) = block_feature_stego; 
		    case 20,    stego20( size(stego20,1)+1, : ) = block_feature_stego; 
		    case 21,    stego21( size(stego21,1)+1, : ) = block_feature_stego; 
		    case 22,    stego22( size(stego22,1)+1, : ) = block_feature_stego; 
		    case 23,    stego23( size(stego23,1)+1, : ) = block_feature_stego; 
		    case 24,    stego24( size(stego24,1)+1, : ) = block_feature_stego; 
		    case 25,    stego25( size(stego25,1)+1, : ) = block_feature_stego; 
		    case 26,    stego26( size(stego26,1)+1, : ) = block_feature_stego; 
		    case 27,    stego27( size(stego27,1)+1, : ) = block_feature_stego; 
		    case 28,    stego28( size(stego28,1)+1, : ) = block_feature_stego; 
		    case 29,    stego29( size(stego29,1)+1, : ) = block_feature_stego; 
		    case 30,    stego30( size(stego30,1)+1, : ) = block_feature_stego; 
		    case 31,    stego31( size(stego31,1)+1, : ) = block_feature_stego; 
		    case 32,    stego32( size(stego32,1)+1, : ) = block_feature_stego;		     
        end 
    end % for block_index = 1:block_no 
end     % for image_index = 1 : image_number

送体验金的网站