How to run a function on a specific area in mask image
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Hi,
I'm trying to run a 2D gaussian function on a specific mask area but with no luck.
I use bwlabel command to select the first area:
[lab,num]=bwlabel(img2);
I=lab==1;
figure
imshow(I)
I have multiple mask area so if I want to apply the gaussian function for the first three area what I sould write? and how to apply the gaussian function?
Kind Regards,
0 comentarios
Respuestas (1)
Image Analyst
el 12 de En. de 2021
Apply the blurring function to the whole image, then multiply the mask by the blurred image.
8 comentarios
Image Analyst
el 12 de En. de 2021
"I want to apply a 2d gaussian function on the left one and the right one I want to apply different function." <== Wow, you're not making this easy are you? Not sure why
- you're not telling us the two functions
- there are two different functions
- you're not telling us if the image is gray scale or color, and
- you're not atttaching the image that is to be filtered
- you're delaying an answer by not giving us everything we need up front to help you.
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!