Need to remove the black background from image patches
1 次查看(过去 30 天)
显示 更早的评论
I have patches of an image . I want to remove those patches which only contain the black background of the image . The image is medical CT scan image of the brain. As you can see in the attachment, the original image and the patches of that image, i want to remove those patches which are only black patches i.e patches of the image background.
FYI , please ignore label of the patch.
0 个评论
采纳的回答
Image Analyst
2016-7-8
Inside your loop where you're creating the subplots of the subimages, do this
for k = 1 : 121
thisImage = ....whatever....
if mean2(thisImage) < 20 % Or whatever value you want
continue;
end
subplot(......
end
0 个评论
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing Toolbox 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!