How to compare between two images in matlab using 2D dwt and find result?

I want to find a way to make a comparator between two images (or more) to find out if the 2nd image is the same or not with the 1st image, using 2D dwt , I am already transform the images to the 2D dwt using Haar wavelet transform . but i do not know how to compare between the results which are ( the 4 images LL,LH,HH,HL). please I want a code with matlab to do that. Thanks.

 採用された回答

ahmed am
ahmed am 2014 年 9 月 12 日

0 投票

hay , i wish i could but iam beginner in matalb . please can you help me by send to me you code to convert image into dwt ,haar, wavelet.

2 件のコメント

Ramy Ahmed
Ramy Ahmed 2014 年 9 月 13 日
Hi I wish if this the code you need
  • clc;
  • close all;
  • imtool close all;
  • clear;
  • %load the image you want to convert it
  • I = imread('filename.extention');
  • whos;
  • image(I); colormap; colorbar;
  • [cA1,cH1,cV1,cD1] = dwt2(I,'haar');
  • A1 = upcoef2('a',cA1,'haar',1);
  • H1 = upcoef2('h',cH1,'haar',1);
  • V1 = upcoef2('v',cV1,'haar',1);
  • D1 = upcoef2('d',cD1,'haar',1);
  • colormap;
  • subplot(2,2,1); image(wcodemat(A1,192));
  • title('Approximation A1')
  • subplot(2,2,2); image(wcodemat(H1,192));
  • title('Horizontal Detail H1')
  • subplot(2,2,3); image(wcodemat(V1,192));
  • title('Vertical Detail V1')
  • subplot(2,2,4); image(wcodemat(D1,192));
  • title('Diagonal Detail D1')
Try it and waiting your request to any help Thanks
Ramy Ahmed
Ramy Ahmed 2014 年 10 月 11 日
please answer me in case of any problems.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Wavelet Toolbox についてさらに検索

質問済み:

2014 年 6 月 19 日

コメント済み:

2014 年 10 月 11 日

Community Treasure Hunt

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

Start Hunting!

Translated by