raygeo.ops.raster
ScanLine
end_mm
end_mm: tuple[float, float]
index
index: int
line_interval_mm
line_interval_mm: float
pixels
pixels: list[tuple[int, int]]
start_mm
start_mm: tuple[float, float]
direction()
direction() -> tuple[float, float]
| Parameter | Type | Description |
|---|---|---|
| Returns | tuple[float, float] |
length_mm()
length_mm() -> float
| Parameter | Type | Description |
|---|---|---|
| Returns | float |
pixel_to_mm()
pixel_to_mm(px: int, py: int, pixels_per_mm: tuple[float, float]) -> tuple[float, float]
| Parameter | Type | Description |
|---|---|---|
px | int | |
py | int | |
pixels_per_mm | tuple[float, float] | |
| Returns | tuple[float, float] |
Functions
rasterize_mask_lines()
rasterize_mask_lines(mask: numpy.NDArray[numpy.uint8], pixels_per_mm: tuple[float, float], offset_x_mm: float, offset_y_mm: float, line_interval_mm: float, z: float = 0.0, angle: float = 0.0) -> Ops
| Parameter | Type | Description |
|---|---|---|
mask | numpy.NDArray[numpy.uint8] | |
pixels_per_mm | tuple[float, float] | |
offset_x_mm | float | |
offset_y_mm | float | |
line_interval_mm | float | |
z | float = 0.0 | |
angle | float = 0.0 | |
| Returns | Ops |
rasterize_mask_scan()
rasterize_mask_scan(mask: numpy.NDArray[numpy.uint8], pixels_per_mm: tuple[float, float], offset_x_mm: float, offset_y_mm: float, line_interval_mm: float, step_power: float = 1.0, angle: float = 0.0) -> Ops
| Parameter | Type | Description |
|---|---|---|
mask | numpy.NDArray[numpy.uint8] | |
pixels_per_mm | tuple[float, float] | |
offset_x_mm | float | |
offset_y_mm | float | |
line_interval_mm | float | |
step_power | float = 1.0 | |
angle | float = 0.0 | |
| Returns | Ops |
rasterize_multi_pass()
rasterize_multi_pass(gray_image: numpy.NDArray[numpy.uint8], pixels_per_mm: tuple[float, float], offset_x_mm: float, offset_y_mm: float, line_interval_mm: float, num_depth_levels: int, z_step_down: float, angle: float = 0.0, angle_increment: float = 0.0) -> Ops
| Parameter | Type | Description |
|---|---|---|
gray_image | numpy.NDArray[numpy.uint8] | |
pixels_per_mm | tuple[float, float] | |
offset_x_mm | float | |
offset_y_mm | float | |
line_interval_mm | float | |
num_depth_levels | int | |
z_step_down | float | |
angle | float = 0.0 | |
angle_increment | float = 0.0 | |
| Returns | Ops |
rasterize_power_modulation()
rasterize_power_modulation(gray_image: numpy.NDArray[numpy.uint8], alpha: numpy.NDArray[numpy.uint8], pixels_per_mm: tuple[float, float], offset_x_mm: float, offset_y_mm: float, line_interval_mm: float, sample_interval_mm: float, min_power: float = 0.0, max_power: float = 1.0, step_power: float = 1.0, num_power_levels: int = 256, angle: float = 0.0) -> Ops
| Parameter | Type | Description |
|---|---|---|
gray_image | numpy.NDArray[numpy.uint8] | |
alpha | numpy.NDArray[numpy.uint8] | |
pixels_per_mm | tuple[float, float] | |
offset_x_mm | float | |
offset_y_mm | float | |
line_interval_mm | float | |
sample_interval_mm | float | |
min_power | float = 0.0 | |
max_power | float = 1.0 | |
step_power | float = 1.0 | |
num_power_levels | int = 256 | |
angle | float = 0.0 | |
| Returns | Ops |