Borrar filtros
Borrar filtros

Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

can u pls explain this code in detail?

1 visualización (últimos 30 días)
ASHA
ASHA el 7 de Abr. de 2014
Cerrada: John D'Errico el 7 de Abr. de 2014
function [Im_rgb phi] = region_seg_demo(Im_rgb,I)
m = zeros(size(I,1),size(I,2)); %-- create initial mask
m=m/2;
[s1 s2 s3] = size(I);
m(10:s1-10,10:s2-10) = 1;
I = imresize(I,.5); %-- make image smaller
Im_rgb = imresize(Im_rgb,.5);
m = imresize(m,.5); % for fast computation
[seg phi] = region_seg(I, m, 500); %-- Run segmentation
% figure;
% imshow(Im_rgb); hold on;
% contour(phi, [0 0], 'w','LineWidth',4);
% contour(phi, [0 0], 'k','LineWidth',2);
% hold off; title([num2str(i) ' Iterations']); drawnow;
  1 comentario
Jan
Jan el 7 de Abr. de 2014
Wow, the next "explain in detail" question. ASHA, this is not efficient for obvious reasons. Please try to use the forum such, that neither your time nor the time of the readers is wasted.

Respuestas (1)

Walter Roberson
Walter Roberson el 7 de Abr. de 2014
Last time I explained some code "in detail" it took me more than half an hour to write up the explanation for 10 lines, most of which were empty. If you do not understand MATLAB syntax then study it.

La pregunta está cerrada.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by