how can i crop an image?

2 次查看(过去 30 天)
Usama Javed
Usama Javed 2012-4-12
I am applying gabor filter to lungs CT scan. it returns me a binary image. now i want to crop lungs from that image.

回答(1 个)

Image Analyst
Image Analyst 2012-4-12
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.

类别

Help CenterFile Exchange 中查找有关 DICOM Format 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by