def gettingRaw(filename, filenameT, plate, well):
    global FEATURE_NUMBER
    print "images loading : plate = "+plate+",well = "+well    
    tabF = None
    
    frameLotC = imp.importRawSegFromHDF5(filename, plate, well)
    tabF=imp.importFeaturesOnly(filename, plate, well)
    if filenameT is not None:
        print "training set loading : filename ="+filenameT
        frameLotC.addTraining2(filename, filenameT)
        print "current training set content :"
        print frameLotC.statisticsTraining2()
    
    return frameLotC, tabF
示例#2
0
def gettingRaw(filename, filenameT, plate, well, secondary=False,name_primary_channel='primary__primary3', frames_to_skip=None,separating_function=None):
    global FEATURE_NUMBER
    print "images loading : plate = "+plate+",well = "+well    
    tabF = None
    try:
        frameLotC, tabF = imp.importRawSegFromHDF5(filename, plate, well, secondary=secondary, name_primary_channel=name_primary_channel, frames_to_skip=frames_to_skip,
                                                   separating_function=separating_function)
    except ValueError:
        sys.stderr.write( sys.exc_info()[1])
        sys.stderr.write("File {} containing data for plate {}, well {} does not contain all necessary data".format(filename, plate, well))
        return None, None

    if filenameT is not None:
        print "training set loading : filename ="+filenameT
        frameLotC.addTraining2(filename, filenameT)
        print "current training set content :"
        print frameLotC.statisticsTraining2()
    
    return frameLotC, tabF