nextpyp.client.gen.ImageDims#
- class nextpyp.client.gen.ImageDims#
Bases:
object(no description yet)
Methods
deserialize- rtype:
Creates a new class instance from JSON
serialize- rtype:
str
Converts this class instance into JSON
Attributes
TYPE_IDimage width, in pixels
image height, in pixels
image depth, in pixels (for tomograms)
the binning factor, same for all dimensions
Details
- __init__(width, height, depth, binning_factor)#
- Parameters:
width (int) –
height (int) –
depth (int) –
binning_factor (int) –
- Return type:
None
-
binning_factor:
int# the binning factor, same for all dimensions
-
depth:
int# image depth, in pixels (for tomograms)
- classmethod from_json(json, type_ids=None)#
Creates a new class instance from JSON
- Return type:
- Parameters:
json (Dict[str, Any]) –
type_ids (Dict[str, str] | None) –
-
height:
int# image height, in pixels
- to_json()#
Converts this class instance into JSON
- Return type:
Dict[str,Any]
-
width:
int# image width, in pixels