How do I resize (connected) components in a 3D binary image sequence without changing the dimensions of the sequence?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Nora
el 3 de Dic. de 2013
Editada: Sean de Wolski
el 3 de Dic. de 2013
I'd like to resize the components contained in a 3D binary image sequence without changing any of the dimensions of the sequence itself.
I'm not sure if I need to do it on a component-by-component basis, if yes, then how do I create a transform such that the resized components are re-positioned 'correctly' in the image sequence? By 'correctly', I mean with the same center of mass as the original components.
(If that last paragraph doesn't make sense then please ignore)
A 2D example: suppose I wanted to enlarge by 10% the white blobs in the following [295x445] image
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/153440/image.jpeg)
How would you do this without making the image itself larger?
Thanks in Advance,
N
2 comentarios
Sean de Wolski
el 3 de Dic. de 2013
Editada: Sean de Wolski
el 3 de Dic. de 2013
Huh? Can you show us a 2d example of what you want with a random binary image?
Respuesta aceptada
Sean de Wolski
el 3 de Dic. de 2013
Editada: Sean de Wolski
el 3 de Dic. de 2013
Use imdilate. If you want to keep each object unique, label it first:
bw = imread('coins.png')>100;
imtool(bw)
Lbig = imdilate(bwlabel(bw),strel('disk',6));
imtool(label2rgb(Lbig));
0 comentarios
Más respuestas (1)
Image Analyst
el 3 de Dic. de 2013
You would have to identify the blobs you want to enlarge, perhaps by area or whatever. So now you have to images of blobs to enlarge, and another one without those in there. Then you can "grow" each blob with imdilate() and OR back into the image without them to get the final image.
0 comentarios
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!