# Image Analysis — Adding Images

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,

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);`

--

--

## More from 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.

Love podcasts or audiobooks? Learn on the go with our new app.

## 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.