示例#1
0
文件: ibme.py 项目: tody411/NPR-SFS
def batch_func(data_name):
    C_8U = loadData(data_name, loader_func=loadRGBA)
    A_8U = alpha(C_8U)
    I_32F = luminance(C_8U)
    N_32F, D_32F = estimateNormal(I_32F)

    result_dir = resultDir(batch_name)
    N_file = resultFile(result_dir, data_name)
    saveNormal(N_file, N_32F, A_8U)
示例#2
0
def batch_func(data_name):
    C_8U = loadData(data_name, loader_func=loadRGBA)
    A_8U = alpha(C_8U)
    I_32F = luminance(C_8U)
    N_32F, D_32F = estimateNormal(I_32F)

    result_dir = resultDir(batch_name)
    N_file = resultFile(result_dir, data_name)
    saveNormal(N_file, N_32F, A_8U)
示例#3
0
def main(input_file, output_file, quiet):
    C_8U = loadRGBA(input_file)
    A_8U = alpha(C_8U)
    I_32F = luminance(C_8U)
    N_32F, D_32F = estimateNormal(I_32F)

    if output_file:
        saveResult(input_file, A_8U, N_32F)

    if quiet:
        return

    showResult(C_8U, D_32F, N_32F, A_8U)
示例#4
0
文件: ibme.py 项目: tody411/NPR-SFS
def main(input_file, output_file, quiet):
    C_8U = loadRGBA(input_file)
    A_8U = alpha(C_8U)
    I_32F = luminance(C_8U)
    N_32F, D_32F = estimateNormal(I_32F)

    if output_file:
        saveResult(input_file, A_8U, N_32F)

    if quiet:
        return

    showResult(C_8U, D_32F, N_32F, A_8U)