The invention discloses a method for automatically
cutting a granular object in a
digital image, belonging to the technical field of
digital image processing. The method comprises the following steps of: firstly, separating an object from a background by applying an
automatic threshold method by aiming at characteristics such as
gray level,
structural distribution, geometry and the like of the granular object in the
digital image, particularly a
microscopic image; then, calculating a gradient
vector field of the object, and searching a key point in the gradient
vector field, wherein the idealkey point has corresponding gradient
vector distribution in eight neighborhoods, the gradient value of the key point is zero, and the acquired key point is used as the center of each granular object;next, defining a new
effective energy function based on the
gray level and a space position so as to calculate a direction gradient to replace the traditional
gray level gradient; and finally, searching the boundary of the granular object by applying an
active contour model. By using the method, the aggregated granular object can be accurately and effectively
cut, particularly, a great number of adhered or overlapped micro-grains exist in a biomedical
microscopic image, and therefore, help is provided for the
image analysis and identification.