import hashlib


def dicom_img_hash(dicom_object):
    """Compute the sha1 hash of the pixel values for a dicom object."""

    sha = hashlib.sha1()
    sha.update(dicom_object.pixel_array)
    return sha.hexdigest()