A method and apparatus for comparing content attributes, e.g., texture, of
one digital image a second digital image. An image operation is performed
on gray scale image data to identify intensity transitions of a first
digital image. The gray scale image data comprises a set of data values
that each identifies a gray scale value. For at least a subset of the set
of data values, a slope value for an intensity transition associated with
the data value is determined. The slope values are converted to possible
slope values of a bounded set of possible slope values. First slope data
that describes a frequency of occurrence, across the subset of data
values, of each possible slope value is generated. The first slope data
is compared to second slope data associated with the second digital image
to determine how similar the first digital image is to the second digital
image.