navigate.model.analysis.boundary_detect.map_labels
- navigate.model.analysis.boundary_detect.map_labels(labeled_image, position, z_start, z_step, x_direction, y_direction, current_pixel_size, current_image_width, current_image_height, target_pixel_size, target_image_width, target_image_height, overlap=0.05, filter_pixel_number=10)
Map labels to positions
- Parameters:
labeled_image (ndarray) – Labeled image data
position (array[int]) – position of x, y, z, theta, f
z_start (float) – Z start position
z_step (float) – step of Z
current_pixel_size (float) – Current camera pixel size
current_image_width (int) – Current image width
current_image_height (int) – Current image height
target_pixel_size (float) – Target camera pixel size
target_image_width (int) – Target image width
target_image_height (int) – Target image height
overlap (float) – Overlap ratio
filter_pixel_number (int) – The pixel number to filter a label
- Returns:
z_range (int) – The maximum number of z steps
positions (array) – Array of positions
target_labels (array) – Array of target label index.