# Crop the object area in an mage [closed]

How to crop the object in the image by black pixel or white pixel area. I want the idea or any code for this. Bounding box is in Matlab. But here we are not have the bounding box options.

x = Import["/home/karthi/Desktop/Length/5.jpg"];
MorphologicalBinarize[x1];


I only tried this. Just I need to detect the black pixel area as bounding box

## closed as unclear what you're asking by m_goldberg, Niki Estner, MarcoB, user9660, ÖskåNov 25 '15 at 19:18

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

• Please describe your problem in more detail, at the moment it is quite unclear what exactly you want to do. Optimally including code to show what you tried already. – Yves Klett Nov 25 '15 at 12:36
• Err ... you have several black areas there. Or perhaps you posted the image after the MorphologicalBinarize[ ]? – Dr. belisarius Nov 25 '15 at 12:50
• yes,But any way, I want the object area in the image – Muthu Kumar Nov 25 '15 at 12:59
• This is my image @belisarius has settled – Muthu Kumar Nov 25 '15 at 13:13
• Welcome to Mathematica.SE! I suggest the following: 0) Browse the common pitfalls question 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the faq! 3) When you see good questions and answers, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. Also, please remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign! – Dr. belisarius Nov 25 '15 at 13:58

i = Import["http://i.stack.imgur.com/AsutA.jpg"];