Exemplo n.º 1
0
def TestVirtualGDL():
    voxelNumbers=(500,500,200)
    fiberContent=0.1
    fiberRadius=9
    fiberLength=500
    binderContent=0.1
    anisotropy=5
    randomSeed=0
    image = virtMatGen.CreateVirtualGDL(voxelNumbers=voxelNumbers,
                         fiberContent=fiberContent,fiberRadius=fiberRadius,fiberLength=fiberLength,
                         binderContent=binderContent,
                         anisotropy=anisotropy,randomSeed=randomSeed) 
    Utilities.WriteTiff(100*(image.astype(np.uint8)),'TestBigGDL.tif')
    return image 
Exemplo n.º 2
0
def TestVisualization():
    image = virtMatGen.CreateVirtualGDL(voxelNumbers=(400,400,100),fiberContent=0.2,fiberRadius=9,
                             fiberLength=400,binderContent=0.05,anisotropy=5,randomSeed=0)

    Visualization.VisualizeVolumeRendering(image)