Image Analysis — Adding Images

Technical Source
2 min readJan 11, 2022

--

I have three separate images that represent the strain of an area in the XX, XY, and YY axis. These images are all scaled the same. My goal is to combine the separate strains into one normalized strain with the following equation: E = (xx² + yy² + xy²)¹/2.

How can I create an array or matrix that is the size of the image that is composed of the RGB values of each image and then insert them into the equation?

NOTE:-

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

Hi,

You can achieve this task by using imread and imshow functions.

when you read the image using the imread function a uint8 array of the image is created.

so we then convert the read image into a double for applying the operations required and then convert it back to uint8 for using the imshow function.

I am providing the code for this task below. I am also attaching the output image.

im1=imread('1.jpg');
im2=imread('2.jpg'); %reading the images, replace the names with appropriate file names.
im3=imread('3.jpg');
im1=double(im1);
im2=double(im2); %converting into double.
im3=double(im3);
im=(((im1.*im1)+(im2.*im2)+(im3.*im3))/3).^0.5; %applying the formula.
im=uint8(im);

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet