pysilcam/plotting.py
def show_imc(imc, mag=2):
    '''
    Plots a scaled figure of for s SilCam image for medium or low magnification systems
    
    Args:
        imc (uint8) : SilCam image (usually a corrected image, such as imc)
        mag=2 (int) : mag=1 scales to the low mag SilCams; mag=2 (default) scales to the medium max SilCams
    '''
    PIX_SIZE = 35.2 / 2448 * 1000
    r, c = np.shape(imc[:,:,0])

    if mag==1:
        PIX_SIZE = 67.4 / 2448 * 1000

    plt.imshow(np.uint8(imc),
            extent=[0,c*PIX_SIZE/1000,0,r*PIX_SIZE/1000],
            interpolation='nearest')
    plt.xlabel('mm')
    plt.ylabel('mm')

    return

    Plots a scaled figure of for s SilCam image for medium or low magnification systems
    
    Args:
        imc (uint8) : SilCam image (usually a corrected image, such as imc)
        mag=2 (int) : mag=1 scales to the low mag SilCams; mag=2 (default) scales to the medium max SilCams
    
Plots a scaled figure of for s SilCam image for medium or low magnification systems
Plots a scaled figure of for s SilCam image for medium or low magnification systems
def show_imc(imc, mag=2):
    PIX_SIZE = 35.2 / 2448 * 1000
    r, c = np.shape(imc[:,:,0])
    if mag==1:
        PIX_SIZE = 67.4 / 2448 * 1000
    plt.imshow(np.uint8(imc),
            extent=[0,c*PIX_SIZE/1000,0,r*PIX_SIZE/1000],
            interpolation='nearest')
    plt.xlabel('mm')
    plt.ylabel('mm')
    return
def show_imc ( imc , mag = 2 ) : PIX_SIZE = 35.2 / 2448 * 1000 r , c = np . shape ( imc [ : , : , 0 ] ) if mag == 1 : PIX_SIZE = 67.4 / 2448 * 1000 plt . imshow ( np . uint8 ( imc ) , extent = [ 0 , c * PIX_SIZE / 1000 , 0 , r * PIX_SIZE / 1000 ] , interpolation = 'nearest' ) plt . xlabel ( 'mm' ) plt . ylabel ( 'mm' ) return
Plots a scaled figure of for s SilCam image for medium or low magnification systems
Plots a scaled figure of for s SilCam image for medium or low magnification systems
'''
    Plots a scaled figure of for s SilCam image for medium or low magnification systems
    
    Args:
        imc (uint8) : SilCam image (usually a corrected image, such as imc)
        mag=2 (int) : mag=1 scales to the low mag SilCams; mag=2 (default) scales to the medium max SilCams
    '''
imc
SilCam image (usually a corrected image, such as imc)
SilCam image ( usually a corrected image such as imc )
mag
mag=2
mag=1 scales to the low mag SilCams; mag=2 (default) scales to the medium max SilCams
mag = 1 scales to the low mag SilCams ; mag = 2 ( default ) scales to the medium max SilCams