Skip to content

Commit

Permalink
fixed weird merge
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorehea committed Sep 7, 2017
2 parents 2d1d21f + ebdb0fe commit 94f63b4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 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 @@ -117,6 +117,7 @@ def getTagDictionary(stack):
for page in tif.pages:
try:
tagDict['dvid_offset_x'] = page.tags['31232'].value

except KeyError as e:
pass
try:
Expand All @@ -128,7 +129,7 @@ def getTagDictionary(stack):
except KeyError as e:
pass
try:
tagDict['downsample_interval_x'] = page.tags['31235'].value
tagDict['downsample_interval_x'] = float(page.tags['31235'].value) + 1.0
except KeyError as e:
pass
if 'downsample_interval_x' not in tagDict:
Expand All @@ -142,7 +143,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 94f63b4

Please sign in to comment.