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

1 visualizzazione (ultimi 30 giorni)
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.

Risposte (1)

Constantino Carlos Reyes-Aldasoro
Post what you have done so that it is possible to help.
  2 Commenti
Charu
Charu il 2 Giu 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 il 2 Giu 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);

Accedi per commentare.

Categorie

Scopri di più su Image Processing Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by