Exemple #1
0
    for n in range(1, n_worker):
        GT_InfoMap = np.concatenate((GT_InfoMap, results[n]), axis=0)

    return GT_InfoMap


if __name__ == '__main__':
    # Run after blurring.py
    # reduce the resolution and setting gaussian blurry level
    rows = 200
    cols = 200
    boxSize = 10
    gaussian_sigma = 1

    # Reduce resolution with ICRSsimulator
    Obj_real = Sim.ICRSsimulator('GT_Full.png')
    Obj_blurred = Sim.ICRSsimulator('wFakeObjects_Full+s&p.png')

    if not Obj_blurred.loadImage() or not Obj_real.loadImage():
        print("Error: could not load image")
        exit(0)

    Obj_real.setMapSize(rows, cols)
    Obj_real.createMap()
    Obj_blurred.setMapSize(rows, cols)
    Obj_blurred.createMap()

    Img_real = Obj_real.img
    Img_blurred = Obj_blurred.img

    InfoMap_real = p_processing_img(Img_real, boxSize)