Have you looked at the imcrop() function in the Image Processing Toolbox? Using the any() function you can easily find the bounding box of the binary blobs, if that's where you want to crop it.
how can i crop an image?
1 次查看(过去 30 天)
显示 更早的评论
I am applying gabor filter to lungs CT scan. it returns me a binary image. now i want to crop lungs from that image.
0 个评论
回答(1 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!