Skip to content

Commit

Permalink
fixed small issue with scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorehea committed Sep 6, 2017
1 parent 45ee772 commit ebdb0fe
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions vol2mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,9 @@ def calcMeshWithCrop(stackname, labelStack, location, simplify, tags):

def calcMesh(stackname, labelStack, location, simplify, tags):
print str(tags['downsample_interval_x'])
SCALEX = float(tags['downsample_interval_x']) + 1.0
SCALEY = float(tags['downsample_interval_x']) + 1.0
SCALEZ = float(tags['downsample_interval_x']) + 1.0
SCALEX = float(tags['downsample_interval_x'])
SCALEY = float(tags['downsample_interval_x'])
SCALEZ = float(tags['downsample_interval_x'])

print("Building mesh...")
vertices, normals, faces = march(labelStack.transpose(), 3) # zero smoothing rounds
Expand Down Expand Up @@ -128,7 +128,7 @@ def getTagDictionary(stack):
except KeyError, e:
pass
try:
tagDict['downsample_interval_x'] = page.tags['31235'].value
tagDict['downsample_interval_x'] = float(page.tags['31235'].value) + 1.0
except KeyError, e:
pass
if 'downsample_interval_x' not in tagDict:
Expand All @@ -142,7 +142,7 @@ def getTagDictionary(stack):
if 'dvid_offset_z' not in tagDict:
print "Offset not found, bad TIFF, quitting."
sys.exit()

return tagDict


Expand Down

0 comments on commit ebdb0fe

Please sign in to comment.