I need to adjust two different size x ray images using 2D transformation.how can i do it? here i attached example digital x ray image.

3 views (last 30 days)
  2 Comments
Image Analyst
Image Analyst on 26 Nov 2018
How do you want to adjust them? Resize them to be the same? Adjust their intensities? Make their histograms match?
thara naiz
thara naiz on 26 Nov 2018
want to resize them to be same size.i try this code.but it make some difference in edges.
clc;
close all;
clear;
workspace;
format long g;
format compact;
fontSize = 20;
img1 = imread('skullOnly1.bmp');
img2 = imread('skullOnly3.bmp');
figure(1);
imshowpair(img1,img2,'montage');
[optimizer,metric]=imregconfig('multimodal');
registered=imregister(img1,img2,'similarity',optimizer,metric);
figure
imshowpair(registered,img2);title('Registration')
Registered.bmp

Sign in to comment.

Accepted Answer

KALYAN ACHARJYA
KALYAN ACHARJYA on 26 Nov 2018
Edited: madhan ravi on 26 Nov 2018
As suggested by @ImageAnalyst proceed your work.
image1=imread('Filename');
% Filename e.g. 1.jpg, If image are dcm format, use dicomread('Filename')
image2=imread('Filename');
[r c]=size(image2);
image1=imresize(image1,[r c]);
%Now both image 1 and image 2 having same size
% Next do the findings
  3 Comments
KALYAN ACHARJYA
KALYAN ACHARJYA on 26 Nov 2018
Edited: KALYAN ACHARJYA on 26 Nov 2018
There are number of ways to do image transformation.
transformation for two different x ray images
What does it mean by transformation of a image? What do you want?
thara naiz
thara naiz on 26 Nov 2018
here I attach my two different x ray images and result of my transformation. in this transformation x ray images skulls are not coincidental. i want skulls of this images to be coincidental.
skullOnly1.bmp
skullOnly3.bmp
Registered.bmp

Sign in to comment.

More Answers (0)

Categories

Find more on Transforms and Spectral Analysis in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!