how can reconstruct one grayscale image with the other??
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I have 2 grayimage m1:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145448/image.jpeg)
and m2:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/145449/image.jpeg)
you can see that m1 and m2 has a little differences.. Is there any way to reconstruct m1 wit m2?? I want to have m1 without any holes and any thing that are like holes... should I turn this images to binary image?
0 comentarios
Respuestas (2)
Image Analyst
el 18 de Sept. de 2014
I'm sure we've talked this before. You can use active contour (demo attached again) to fill in bays on your image. Then use that to extract the new gray scale image
smoothBorder = activecontour(grayImage, mask, 400, 'edge');
newGrayImage = grayImage; % Initialize
newGrayImage(~smoothBorder) = 0; % Black outside smoothed border.
9 comentarios
Image Analyst
el 22 de Sept. de 2014
If it's the best answer you'll think you'll get from anyone, and at least got you started in the right direction, then can you mark it as accepted?
sara
el 22 de Sept. de 2014
1 comentario
Image Analyst
el 22 de Sept. de 2014
I haven't used activecontour a lot. I don't know if the starter mask has to be larger than the final mask, or if it can be smaller, or go both inside and outside. Not sure - you'd have to try it. At least that's what I think you were asking, because morphological reconstruction with a marker image using imreconstruct() is a different thing.
Ver también
Categorías
Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!