フィルターのクリア

how to find the eucledian distance

1 回表示 (過去 30 日間)
Anusha
Anusha 2012 年 10 月 2 日
i have 10 gray images of size [256 256],ihave extracted the feature vector of all images.the fv of each image is of size[1 65536].then i have stacked all 10 fv into one matrix.now d size of this single matrix is [10 65536].i have taken the 1st image as the query image,now i want to find the eucledian distance between the query image and all the other 10 image (including query image ,it will be 0 anyway).i need the distance matrix of size 10 rows and 1 column...someone please help

回答 (1 件)

Image Analyst
Image Analyst 2012 年 10 月 2 日
Huh? 65536 features? Usually you have only a handful of features per image. It looks like you're saying that every single pixel in the image is a feature. Comparing every pixel in the image to every pixel in some other image is probably not a good method of comparing the images unless you're trying to find images that are really close, like one that has undergone compression and decompression to the original. In that case you can check out the PSNR or supposedly better, the SSIM.
Wayne King says "measerr() in the Wavelet Toolbox computes PSNR and a few other approximation quality measures."

Community Treasure Hunt

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

Start Hunting!

Translated by