how to automatically cropp the picture

this is the image before cropping.
i need a program which will automatically crop like the one below
i can get rid of extra outer space and thus reduce image sixe. i thought of finding the left most and right most, bottom most and top most pixel points and keeping this points we can crop upto those points. please help me with the code..

Answers (0)

This question is closed.

Tags

Asked:

on 24 Jan 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!