qtm.settings.processing._2d
Access and modify 2d processing settings.
import qtm
qtm.settings.processing._2d.set_use_max_marker_size("project", False)
print(qtm.settings.processing._2d.get_use_max_marker_size("project"))
# False
print(qtm.settings.processing._2d.get_max_marker_size("measurement"))
# 4096
qtm.settings.processing._2d.set_use_max_marker_size("project", false)
print(qtm.settings.processing._2d.get_use_max_marker_size("project"))
-- false
print(qtm.settings.processing._2d.get_max_marker_size("measurement"))
-- 4096
curl --json "[\"project\", false]" http://localhost:7979/api/scripting/qtm/settings/processing/_2d/set_use_max_marker_size
curl --json "[\"project\"]" http://localhost:7979/api/scripting/qtm/settings/processing/_2d/get_use_max_marker_size
:: false
curl --json "[\"measurement\"]" http://localhost:7979/api/scripting/qtm/settings/processing/_2d/get_max_marker_size
:: 4096
get_correct_center_points
Get whether to correct center points.
qtm.settings.processing._2d.get_correct_center_points(source)
Parameters
source
"project"|"measurement"
The settings source.
Returns
bool
set_correct_center_points
Set whether to correct center points.
qtm.settings.processing._2d.set_correct_center_points(source, enable)
Center point correction requires circularity filtering to be enabled (see 'qtm.settings.camera.set_use_circularity_filtering').
Parameters
source
"project"|"measurement"
The settings source.
enable
bool
True if center points should be corrected, otherwise false.
get_use_min_marker_size
Get whether to filter markers by minimum size.
qtm.settings.processing._2d.get_use_min_marker_size(source)
Parameters
source
"project"|"measurement"
The settings source.
Returns
bool
set_use_min_marker_size
Set whether to filter markers by minimum size.
qtm.settings.processing._2d.set_use_min_marker_size(source, enable)
Parameters
source
"project"|"measurement"
The settings source.
enable
bool
True if markers should be filtered by minimum size, otherwise false.
get_use_max_marker_size
Get whether to filter markers by maximum size.
qtm.settings.processing._2d.get_use_max_marker_size(source)
Parameters
source
"project"|"measurement"
The settings source.
Returns
bool
set_use_max_marker_size
Set whether to filter markers by maximum size.
qtm.settings.processing._2d.set_use_max_marker_size(source, enable)
Parameters
source
"project"|"measurement"
The settings source.
enable
bool
True if markers should be filtered by maximum size, otherwise false.
get_min_marker_size
Get the minimum marker size.
qtm.settings.processing._2d.get_min_marker_size(source)
Parameters
source
"project"|"measurement"
The settings source.
Returns
integer
The minimum marker size (in subpixels).
set_min_marker_size
Set the minimum marker size.
qtm.settings.processing._2d.set_min_marker_size(source, size)
This method requires filtering by minimum marker size to be enabled (see 'set_use_min_marker_size').
Parameters
source
"project"|"measurement"
The settings source.
size
integer
The minimum marker size (in subpixels).
get_max_marker_size
Get the maximum marker size.
qtm.settings.processing._2d.get_max_marker_size(source)
Parameters
source
"project"|"measurement"
The settings source.
Returns
integer
The maximum marker size (in subpixels).
set_max_marker_size
Set the maximum marker size.
qtm.settings.processing._2d.set_max_marker_size(source, size)
This method requires filtering by maximum marker size to be enabled (see 'set_use_max_marker_size').
Parameters
source
"project"|"measurement"
The settings source.
size
integer
The maximum marker size (in subpixels).
help
Get the documentation for a module or method.
qtm.settings.processing._2d.help(method?)
Parameters
method
string?
The name of the method (if null, the documentation for the module will be returned instead).
Returns
string