필터 지우기
필터 지우기

Scanning reference image and its distorted images

조회 수: 2 (최근 30일)
fzhmktr
fzhmktr 2019년 10월 14일
편집: fzhmktr 2019년 10월 14일
I am writing code where it scanned the folder of reference images and distorted images. I want to match the reference image with its distorted images so that I can assess the quality later. I have about 29 reference images and 145 distorted images. The distorted images are in random order when I downloaded it. I tried match it by using size unfortunately other reference images also have the same size thus the result I get are wrong. Is there any unique features that reference images share with their distorted images? This is my code.
ref_info = dir('Image database\imgref\*.bmp'); %search directory of reference images
dis_info = dir('Image database\imgdist\*.bmp'); %search directory of distorted images
for z = 1 : 145
dist_name = strcat('Image database\imgdist\',dis_info(z).name);
imgDist = imread(dist_name);
for y = 1 : 29
ref_name = strcat('Image database\imgref\',ref_info(y).name);
imgRef = imread(ref_name);
if (size (imgRef) == size (imgDist))
similarity = ImageAssessment(imgRef,imgDist);
Quality_Score(z,:) = similarity;
else
end
end
end

답변 (0개)

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by