ArtsAutosBooksBusinessEducationEntertainmentFamilyFashionFoodGamesGenderHealthHolidaysHomeHubPagesPersonal FinancePetsPoliticsReligionSportsTechnologyTravel

IMAGE MATCHING TECHNIQUE

Updated on February 6, 2015

IMAGE MATCHING


ITS A TECHNIQUE TO COMPARE TO IMAGES BY COMPARING THERE WHITE PIXELS, THIS IS VERY USEFUL WHILE CALCULATING PERCENTAGE CHANGE IN SAME IMAGE CAPTURED AT DIFFERENT INTERVALS OF TIME.

1 Image Processing

An Image is rectangular graphical object. Image processing involves issues related to image representation, compression techniques and various complex operations, which can be carried out on the image data. The operations that come under image processing are image enhancement operations such as sharpening, blurring, brightening, edge enhancement.

2. Steps in Image Processing Image Representation


Image representation is concerned with characterization of the quantity that each picture-element (pixel) represents. The fundamentals requirement of digital processing is that images can be sampled and quantized.

Image can be represented in analog or digital form. In digital representation, image can be represented in gray-scale or color format. The gray-level images are represented as 8-bits which allows 256(0-255) possible gray color combinations. The color images are represented as 24-bits (32-bits including alpha transparency) in which each 8-bits represents red, green and blue colors.

· Image Enhancement

In Image enhancement, the goal is to accentuate certain image features for subsequent analysis or for image display. Examples include contrast and edge enhancement is useful in feature extraction, image analysis, and visual information display. The enhancement process itself does not increase the inherent information content in the data. It simply emphasizes certain specified image characteristics.

· Image Restoration

Image restoration refers to removal or minimization of unknown degradations in an image. This includes deblurring of images degraded by the limitation of sensor or its environment, noise filtering, and correction of geometric distortion or non- linearties due to sensors.

· Edge Detection


The image consists of objects of interest displayed on a contrasting background; an edge is a transition from background to object or vice versa. The total change in intensity from background to foreground is called the strength of the edge or edge detection.

· Histogram Calculation

The histogram of an image represents the relative frequency of occurrence of the various gray levels in the image. The histogram of a digital image with gray levels in the range(0,l-1) is a discrete function


P(rk)= nk/n

Where,

rk is the kth gray level

nk is the number of pixels in the image with that gray

level

n is the total number of pixels in the image k=0, l-1.

P(rk) gives an estimate of the probability of occurrence of gray level rk. A plot of this function for all values of k provides a global description of the appearance of an image.

The horizontal axis of the histogram encompasses the range (0,255), which is possible range of gray level values for an 8-bit image. The vertical axis shows the number of pixels for each gray level instead of probabilities.

FOR VALENTINE DAY UPDATES VISIT: Greetings (A complete solution for wishing your love ones).

Linear Spatial Filter (Convolution Operation)

TECHNIQUE FOR IMAGE MATCHING

  1. take an image to compare say CAPTURED IMAGE
  2. take another image to which the captured image is compared say REFERENCE IMAGE
  3. apply RGB to gray conversion procedure on 1st image
  4. apply RGB to gray conversion procedure on 2nd image
  5. apply image enhancement technique on 1st image i.e removable of noise from the image by applying median filter or applying wiener2.
  6. apply image enhancement technique on 2nd image i.e removable of noise from the image by applying median filter or applying wiener2.
  7. apply edge enhancement technique over the 1st image by simply applying canny edge detection technique(famous and simple).
  8. apply edge enhancement technique over the 2nd image by simply applying canny edge detection technique(famous and simple).
  9. apply image matching comparison procedure for comparing the images by simply counting the white pixels matched.
  10. calculate the percentage by simply dividing the matched white pixel to the total no of white pixels.

MATLAB CODE FOR IMAGE MATCHING

CODE FOR IMAGE COMPARISON

<code>
A=imread('Image1');
M=imread('Image2');

A=rgb2gray(A);
M=rgb2gray(M);
figure,imshow(A);
title('after gray conversion A');
figure,imshow(M);
title('after gray conversion M');


J=wiener2(A,[5 5]);
title('image after wiener filtering A');
figure,imshow(J);

J1=wiener2(M,[5 5]);
title('image after wiener filtering M');
figure,imshow(J1);

BW1=edge(J,'canny');
figure,imshow(BW1);
title('image after edge detection A');

BW2=edge(J1,'canny');
figure,imshow(BW2);
title('image after edge detection M');


OUTPUT_MESSAGE = 'almost same x-ray images ';
OUTPUT_MESSAGE2 = ' x-ray images not matching ';

matched_data = 0;
white_points1 = 0;
white_points2 = 0;
black_points = 0;
x=0;
y=0;
l=0;
m=0;
time=0;

for a = 1:1:300
for b = 1:1:300
if(BW1(a,b)==1)
white_points1 = white_points1+1;
else
black_points = black_points+1;
end
end
end

for a = 1:1:300
for b = 1:1:300
if(BW2(a,b)==1)
white_points2 = white_points2+1;
else
black_points = black_points+1;
end
end
end

display(white_points1);
display(white_points2);

%total_data = white_points;
total_matched_percentage = (white_points1/white_points2)*100;
display((total_matched_percentage));

if(total_matched_percentage >= 85)

display(OUTPUT_MESSAGE);

else

display(OUTPUT_MESSAGE2);
end



</code>

review

the information given above is relevant or not?

See results
working

This website uses cookies

As a user in the EEA, your approval is needed on a few things. To provide a better website experience, hubpages.com uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at: https://corp.maven.io/privacy-policy

Show Details
Necessary
HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
LoginThis is necessary to sign in to the HubPages Service.
Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
AkismetThis is used to detect comment spam. (Privacy Policy)
HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the googleapis.com or gstatic.com domains, for performance and efficiency reasons. (Privacy Policy)
Features
Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
MavenThis supports the Maven widget and search functionality. (Privacy Policy)
Marketing
Google AdSenseThis is an ad network. (Privacy Policy)
Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
Index ExchangeThis is an ad network. (Privacy Policy)
SovrnThis is an ad network. (Privacy Policy)
Facebook AdsThis is an ad network. (Privacy Policy)
Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
AppNexusThis is an ad network. (Privacy Policy)
OpenxThis is an ad network. (Privacy Policy)
Rubicon ProjectThis is an ad network. (Privacy Policy)
TripleLiftThis is an ad network. (Privacy Policy)
Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
Statistics
Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
ClickscoThis is a data management platform studying reader behavior (Privacy Policy)