nextpyp.client.gen.ImageDims#

class nextpyp.client.gen.ImageDims#

Bases: object

(no description yet)

Methods

__init__

deserialize

rtype:

ImageDims

from_json

Creates a new class instance from JSON

serialize

rtype:

str

to_json

Converts this class instance into JSON

Attributes

TYPE_ID

width

image width, in pixels

height

image height, in pixels

depth

image depth, in pixels (for tomograms)

binning_factor

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:

ImageDims

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