How to find active contours of multiple images simultaneously and how to overlay multiple of them?

1 view (last 30 days)
I have tried various codes for active contour using ROI but it works for one image at a time and overlay using cast outpict function it decreases brightness of other boundary.

Answers (1)

Constantino Carlos Reyes-Aldasoro
Post what you have done so that it is possible to help.
  2 Comments
Charu
Charu on 2 Jun 2023
i have applied this code to find active contour of an image and get this image. i want to get several of them together.
A = imread('Charu 5.jpg');
imshow(A)
I = rgb2gray(A);
figure
imshow(I)
r = drawrectangle;
mask = createMask(r);
bw = activecontour(I,mask,1,'edge');
hold on;
visboundaries(bw,'Color','r');
Charu
Charu on 2 Jun 2023
Also, for overlaying multiple images, i used this code. but it decreases brightness of upper image on successive overlaying.
A = imread('A0.jpg');
B = imread('A1.jpg');
C = imread('A2.jpg');
D = imread('A3.jpg');
E = imread('A4.jpg');
F = imread('A5.jpg');
G = imread('A6.jpg');
outpict = cat(7,A,B,C,D,E,F,G);
outpict = cast(mean(outpict,7),class(A));
imshow(outpict);

Sign in to comment.

Categories

Find more on Image Processing Toolbox 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!