Exemple #1
0
        1] + '_' + sys.argv[2][-11:-4] + "_5.png"
    plt.savefig(ImgPath, dpi=600, bbox_inches='tight')
    #plt.show()
    plt.title(sys.argv[2][-11:])
    plt.imshow(fmred, cmap=plt.cm.gray)
    ImgPath = 'D:\\Fingerprint\\paper8_NN\\P8NN_Images\\' + sys.argv[
        1] + '_' + sys.argv[2][-11:-4] + "_6.png"
    plt.savefig(ImgPath, dpi=600, bbox_inches='tight')
    #plt.show()

    #
    # 10. prob image
    #
    print("10. Prob. image...")
    fmprb = np.full(fm.shape, 192, dtype=int)
    MyL.UT_SetGray(plt, fpfg, fmprb, fpdir_prob)
    plt.title(sys.argv[2][-11:])
    plt.imshow(fmprb, cmap=plt.cm.gray)
    ImgPath = 'D:\\Fingerprint\\paper8_NN\\P8NN_Images\\' + sys.argv[
        1] + '_' + sys.argv[2][-11:-4] + "_4.png"
    plt.savefig(ImgPath, dpi=600, bbox_inches='tight')
    #plt.show()

    #
    # 11. pixel three color image
    #
    print("11. Tri-color image...")
    print("11.a. prepare 21-feature...")
    height, width = fm.shape[0], fm.shape[1]
    NoHeight, NoWidth = height - PixNo + 1, width - PixNo + 1
    print(NoHeight, NoWidth)