pysilcam/process.py
def write_segmented_images(imbw, imc, settings, timestamp):
    '''writes binary images as bmp files to the same place as hdf5 files if loglevel is in DEBUG mode
    Useful for checking threshold and segmentation

    Args:
        imbw                        : segmented image
        settings                    : PySilCam settings
        timestamp                   : timestamp of image collection
    '''
    if (settings.General.loglevel == 'DEBUG') and settings.ExportParticles.export_images:
        fname = os.path.join(settings.ExportParticles.outputpath, timestamp.strftime('D%Y%m%dT%H%M%S.%f-SEG.bmp'))
        imbw_ = np.uint8(255*imbw)
        imsave(fname, imbw_)
        fname = os.path.join(settings.ExportParticles.outputpath, timestamp.strftime('D%Y%m%dT%H%M%S.%f-IMC.bmp'))
        imsave(fname, imc)
writes binary images as bmp files to the same place as hdf5 files if loglevel is in DEBUG mode
    Useful for checking threshold and segmentation

    Args:
        imbw                        : segmented image
        settings                    : PySilCam settings
        timestamp                   : timestamp of image collection
    
writes binary images as bmp files to the same place as hdf5 files if loglevel is in DEBUG mode
Useful for checking threshold and segmentation
writes binary images as bmp files to the same place as hdf5 files if loglevel is in DEBUG mode Useful for checking threshold and segmentation
def write_segmented_images(imbw, imc, settings, timestamp):
    if (settings.General.loglevel == 'DEBUG') and settings.ExportParticles.export_images:
        fname = os.path.join(settings.ExportParticles.outputpath, timestamp.strftime('D%Y%m%dT%H%M%S.%f-SEG.bmp'))
        imbw_ = np.uint8(255*imbw)
        imsave(fname, imbw_)
        fname = os.path.join(settings.ExportParticles.outputpath, timestamp.strftime('D%Y%m%dT%H%M%S.%f-IMC.bmp'))
        imsave(fname, imc)
def write_segmented_images ( imbw , imc , settings , timestamp ) : if ( settings . General . loglevel == 'DEBUG' ) and settings . ExportParticles . export_images : fname = os . path . join ( settings . ExportParticles . outputpath , timestamp . strftime ( 'D%Y%m%dT%H%M%S.%f-SEG.bmp' ) ) imbw_ = np . uint8 ( 255 * imbw ) imsave ( fname , imbw_ ) fname = os . path . join ( settings . ExportParticles . outputpath , timestamp . strftime ( 'D%Y%m%dT%H%M%S.%f-IMC.bmp' ) ) imsave ( fname , imc )
writes binary images as bmp files to the same place as hdf5 files if loglevel is in DEBUG mode
Useful for checking threshold and segmentation
writes binary images as bmp files to the same place as hdf5 files if loglevel is in DEBUG mode Useful for checking threshold and segmentation
'''writes binary images as bmp files to the same place as hdf5 files if loglevel is in DEBUG mode
    Useful for checking threshold and segmentation

    Args:
        imbw                        : segmented image
        settings                    : PySilCam settings
        timestamp                   : timestamp of image collection
    '''
imbw
imc
settings
timestamp
imbw                        
None
settings                    
None
timestamp                   
timestamp of image collection
timestamp of image collection