siriushla.common.cam_basler

Code Documentation

siriushla.common.cam_basler.base module

SiriusScrnView widget.

class siriushla.common.cam_basler.base.SiriusImageView(parent=None, image_channel=None, width_channel=None, offsetx_channel=None, offsety_channel=None, maxwidth_channel=None, maxheight_channel=None)[source]

Bases: PyDMImageView

A PyDMImageView with methods to handle screens calibration grids.

ROIOffsetXChannel
pyqtProperty(type, fget=None, fset=None, freset=None, fdel=None, doc=None,

designable=True, scriptable=True, stored=True, user=False, constant=False, final=False, notify=None, revision=0) -> property attribute

type is the type of the property. It is either a type object or a string that is the name of a C++ type. freset is a function for resetting an attribute to its default value. designable sets the DESIGNABLE flag (the default is True for writable properties and False otherwise). scriptable sets the SCRIPTABLE flag. stored sets the STORED flag. user sets the USER flag. constant sets the CONSTANT flag. final sets the FINAL flag. notify is the NOTIFY signal. revision is the REVISION. The other parameters are the same as those required by the standard Python property type. Properties defined using pyqtProperty behave as both Python and Qt properties. Decorators can be used to define new properties or to modify existing ones.

ROIOffsetYChannel
pyqtProperty(type, fget=None, fset=None, freset=None, fdel=None, doc=None,

designable=True, scriptable=True, stored=True, user=False, constant=False, final=False, notify=None, revision=0) -> property attribute

type is the type of the property. It is either a type object or a string that is the name of a C++ type. freset is a function for resetting an attribute to its default value. designable sets the DESIGNABLE flag (the default is True for writable properties and False otherwise). scriptable sets the SCRIPTABLE flag. stored sets the STORED flag. user sets the USER flag. constant sets the CONSTANT flag. final sets the FINAL flag. notify is the NOTIFY signal. revision is the REVISION. The other parameters are the same as those required by the standard Python property type. Properties defined using pyqtProperty behave as both Python and Qt properties. Decorators can be used to define new properties or to modify existing ones.

property calibrationGrid

Return Numpy array containing original grid.

property calibration_grid_filterfactor

Factor used to filter calibration grid.

Pixels with values smaller than filterfactor*img_maxdata are set to zero.

Returns:

Calibration Grid Filter Factor

Return type:

float

property calibration_grid_removeborder

Factor used to remove border of the calibration grid.

Returns:

Number of Rows/Columns to be removed

Return type:

float

failToSaveGrid

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

property image_maxheight

Return image maximum height.

image_maxheight_changed(new_max)[source]

Run when the maxHeight Channel value changes.

Parameters:

new_max (int) – The new image max height

property image_maxwidth

Return image maximum width.

image_maxwidth_changed(new_max)[source]

Run when the maxWidth Channel value changes.

Parameters:

new_max (int) – The new image max width

image_roioffsetx_changed(new_offset)[source]

Run when the ROIOffsetX Channel value changes.

Parameters:

new_offsetx (int) – The new image ROI horizontal offset

image_roioffsety_changed(new_offset)[source]

Run when the ROIOffsetY Channel value changes.

Parameters:

new_offsety (int) – The new image ROI vertical offset

maxHeightChannel
pyqtProperty(type, fget=None, fset=None, freset=None, fdel=None, doc=None,

designable=True, scriptable=True, stored=True, user=False, constant=False, final=False, notify=None, revision=0) -> property attribute

type is the type of the property. It is either a type object or a string that is the name of a C++ type. freset is a function for resetting an attribute to its default value. designable sets the DESIGNABLE flag (the default is True for writable properties and False otherwise). scriptable sets the SCRIPTABLE flag. stored sets the STORED flag. user sets the USER flag. constant sets the CONSTANT flag. final sets the FINAL flag. notify is the NOTIFY signal. revision is the REVISION. The other parameters are the same as those required by the standard Python property type. Properties defined using pyqtProperty behave as both Python and Qt properties. Decorators can be used to define new properties or to modify existing ones.

maxWidthChannel
pyqtProperty(type, fget=None, fset=None, freset=None, fdel=None, doc=None,

designable=True, scriptable=True, stored=True, user=False, constant=False, final=False, notify=None, revision=0) -> property attribute

type is the type of the property. It is either a type object or a string that is the name of a C++ type. freset is a function for resetting an attribute to its default value. designable sets the DESIGNABLE flag (the default is True for writable properties and False otherwise). scriptable sets the SCRIPTABLE flag. stored sets the STORED flag. user sets the USER flag. constant sets the CONSTANT flag. final sets the FINAL flag. notify is the NOTIFY signal. revision is the REVISION. The other parameters are the same as those required by the standard Python property type. Properties defined using pyqtProperty behave as both Python and Qt properties. Decorators can be used to define new properties or to modify existing ones.

process_image(image)[source]

Reimplement process_image method to add grid to image.

receivedData

int = …, arguments: Sequence = …) -> PYQT_SIGNAL

types is normally a sequence of individual types. Each type is either a type object or a string that is the name of a C++ type. Alternatively each type could itself be a sequence of types each describing a different overloaded signal. name is the optional C++ name of the signal. If it is not specified then the name of the class attribute that is bound to the signal is used. revision is the optional revision of the signal that is exported to QML. If it is not specified then 0 is used. arguments is the optional sequence of the names of the signal’s arguments.

Type:

pyqtSignal(*types, name

Type:

str = …, revision

roioffsetx_connection_state_changed(conn)[source]

Run when the ROIOffsetX Channel connection state changes.

Parameters:

conn (bool) – The new connection state.

roioffsety_connection_state_changed(conn)[source]

Run when the ROIOffsetY Channel connection state changes.

Parameters:

conn (bool) – The new connection state.

saveCalibrationGrid()[source]

Save current image as calibration_grid_image.

set_calibration_grid_border2remove(value)[source]

Set factor used to remove border of the calibration grid.

Parameters:

value (int) – Number of Rows/Columns to be removed

set_calibration_grid_filterfactor(value)[source]

Set factor used to filter calibration grid.

Pixels with values smaller than filterfactor*img_maxdata are set to zero.

Parameters:

value (int) – Calibration Grid Filter Factor

showCalibrationGrid(show)[source]

Show calibration_grid_image over the current image_waveform.

siriushla.common.cam_basler.base.create_propty_layout(parent, prefix, propty, propty_type='', cmd={}, layout='hbox', width=7.1, height=1.29, use_linedit=False)[source]

Return a layout that handles a property according to ‘propty_type’.

siriushla.common.cam_basler.settings module

class siriushla.common.cam_basler.settings.BaslerCamAcqAdvSettings(parent=None, device='', prefix='')[source]

Bases: QWidget

class siriushla.common.cam_basler.settings.BaslerCamSettings(parent=None, device='', prefix='')[source]

Bases: QTabWidget

Module contents