processing_components/image/operations.py
def qa_image(im, context="") -> QA:
    """Assess the quality of an image

    :param im:
    :return: QA
    """
    assert isinstance(im, Image), im
    data = {'shape': str(im.data.shape),
            'max': numpy.max(im.data),
            'min': numpy.min(im.data),
            'maxabs': numpy.max(numpy.abs(im.data)),
            'rms': numpy.std(im.data),
            'sum': numpy.sum(im.data),
            'medianabs': numpy.median(numpy.abs(im.data)),
            'medianabsdevmedian': numpy.median(numpy.abs(im.data-numpy.median(im.data))),
            'median': numpy.median(im.data)}
    
    qa = QA(origin="qa_image", data=data, context=context)
    return qa
Assess the quality of an image

    :param im:
    :return: QA
    
Assess the quality of an image
Assess the quality of an image
def qa_image(im, context="") -> QA:
    assert isinstance(im, Image), im
    data = {'shape': str(im.data.shape),
            'max': numpy.max(im.data),
            'min': numpy.min(im.data),
            'maxabs': numpy.max(numpy.abs(im.data)),
            'rms': numpy.std(im.data),
            'sum': numpy.sum(im.data),
            'medianabs': numpy.median(numpy.abs(im.data)),
            'medianabsdevmedian': numpy.median(numpy.abs(im.data-numpy.median(im.data))),
            'median': numpy.median(im.data)}
    qa = QA(origin="qa_image", data=data, context=context)
    return qa
def qa_image ( im , context = "" ) -> QA : assert isinstance ( im , Image ) , im data = { 'shape' : str ( im . data . shape ) , 'max' : numpy . max ( im . data ) , 'min' : numpy . min ( im . data ) , 'maxabs' : numpy . max ( numpy . abs ( im . data ) ) , 'rms' : numpy . std ( im . data ) , 'sum' : numpy . sum ( im . data ) , 'medianabs' : numpy . median ( numpy . abs ( im . data ) ) , 'medianabsdevmedian' : numpy . median ( numpy . abs ( im . data - numpy . median ( im . data ) ) ) , 'median' : numpy . median ( im . data ) } qa = QA ( origin = "qa_image" , data = data , context = context ) return qa
Assess the quality of an image
Assess the quality of an image
"""Assess the quality of an image

    :param im:
    :return: QA
    """
None
im
None
context