def rectifyCloud(xyc,autoPerimeterOffset=True,autoPerimeterDensity=True,
width=64, height=64,
perimeterSubdivisionSteps=4, paddingScale=1.05,
smoothing=0.001, warpQuality=9, perimeterOffset=None ):
sourceGridPoints = getCloudGrid( xyc,autoPerimeterOffset=autoPerimeterOffset,autoPerimeterDensity=autoPerimeterDensity,
width=width, height=width,
perimeterSubdivisionSteps=perimeterSubdivisionSteps, paddingScale=paddingScale,
smoothing=smoothing, warpQuality=warpQuality, perimeterOffset=perimeterOffset)
targetGridPoints = []
for yi in range(height):
for xi in range(width):
targetGridPoints.append([xi,yi])
return warpCloud( xyc, sourceGridPoints, targetGridPoints, warpQuality=warpQuality )
评论列表
文章目录