Skip to content

Commit 8b84505

Browse files
authored
Merge pull request #166 from martinschorb/develop
add convertToGray parameter (replaces ImageType)
2 parents 842eb63 + 331d708 commit 8b84505

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

renderapi/client/client_calls.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
416416
format=None, channel=None, customOutputFolder=None,
417417
customSubFolder=None, padFileNamesWithZeros=None,
418418
resolutionUnit=None, doFilter=None, fillWithNoise=None,
419-
imageType=None, subprocess_mode=None, host=None,
419+
convertToGray=None, subprocess_mode=None, host=None,
420420
port=None, owner=None, project=None,
421421
client_script=None, memGB=None, render=None,
422422
**kwargs):
@@ -452,8 +452,8 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
452452
resolutionUnit: str
453453
if format is tiff and unit is specified (e.g. as 'nm'), include resolution data
454454
in rendered tiff headers.
455-
imageType: int
456-
8,16,24 to specify what kind of image type to save
455+
convertToGray: str
456+
string representing java boolean for whether to save output as 8bit uint
457457
doFilter : str
458458
string representing java boolean for whether to render image
459459
with default filter (varies with render version)
@@ -489,7 +489,7 @@ def renderSectionClient(stack, rootDirectory, zs, scale=None,
489489
get_param(maxIntensity, '--maxIntensity') +
490490
get_param(fillWithNoise, '--fillWithNoise') +
491491
get_param(customOutputFolder, '--customOutputFolder') +
492-
get_param(imageType, '--imageType') +
492+
(['--convertToGray'] if convertToGray else []) +
493493
get_param(channel, '--channels') +
494494
get_param(customSubFolder, '--customSubFolder') +
495495
get_param(padFileNamesWithZeros, '--padFileNamesWithZeros') +

0 commit comments

Comments
 (0)