how to add more than 2 images for brain tumor detection?

2 views (last 30 days)
Hi, i have 4 images in separate folder. I have to add all the picture to perform for tumor detection. But i don't know how to add all the images. I just found the code to add 2 images using imadd.
This is the image that i have to add. Is there any difference method that i can use?

Answers (1)

KALYAN ACHARJYA
KALYAN ACHARJYA on 7 Jan 2021
Addition of four images
result=image1+image2+image3+image4;
If you add all four images, the maximum scale can be a maximum number of pixels, result will be complete white image. Is that you really want this?
Using imadd function
im1=imadd(image1,image2);
im1=imadd(image3,image4);
result=imadd(im1,im2);
To make Multidimentioanl Array (3D)
result=cat(4,image1,image2,image3,image4)
  4 Comments
KALYAN ACHARJYA
KALYAN ACHARJYA on 7 Jan 2021
Edited: KALYAN ACHARJYA on 7 Jan 2021
Exactly, I have mentioned that
"If you add all four images, the maximum scale can be a maximum number of pixels, result will be complete white image."
"after i have done that addition, the result of the segmentation came out wrong"
How do you know that addition segments the resultant region of imterest. May be you have look for thresholding or other image segmentation algorithms to extract the ROI. If you are beginner and wish to learn, my heartfelt suggestion would be read "Image Segmentation Chapter: Digital Image Processing Book By Gonzalez". You will get much more, then practice.
"i am so sorry for asking so many question. "
No sorry, we are here to help and learn together
Good Luck
Kalyan :)
nod nad
nod nad on 7 Jan 2021
Thank you sir,and yes i am a beginner. This is my project for this semester, my lecturer has show the result for the segmentation. And that is why i said that. Thank you for your answer and suggestion sir :D i appreciate it.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!