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

1 次查看(过去 30 天)
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.

回答(1 个)

Constantino Carlos Reyes-Aldasoro
Post what you have done so that it is possible to help.
  2 个评论
Charu
Charu 2023-6-2
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 2023-6-2
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);

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Image Processing Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by