MATLAB: Extract part from an image

cropextractimageimage processingMATLAB

How to extract gradient part from this image?

Best Answer

[Gmag,Gdir]=imgradient(input_grayScaleImage);
imshow([Gmag,Gdir]);
title('<Gradient G Direction>')