MCPcopy Create free account

hub / github.com/bnsreenu/digitalsreeni-image-annotator / functions

Functions1,194 in github.com/bnsreenu/digitalsreeni-image-annotator

↓ 4 callersMethod_sync_bbox_key
Keep a stored bbox key consistent with an edited segmentation. Imported annotations carry both (the bbox feeds export / SAM training);
src/digitalsreeni_image_annotator/widgets/image_label.py:1271
↓ 4 callersMethod_update_select_cursor
Hover feedback in select mode: resize cursors over a selected shape's handles, a move cursor over its interior, arrow otherwise.
src/digitalsreeni_image_annotator/widgets/image_label.py:1300
↓ 4 callersMethodadd_annotation_to_list
(self, annotation)
src/digitalsreeni_image_annotator/controllers/annotation_controller.py:1112
↓ 4 callersMethodadd_images_to_list
(self, file_names)
src/digitalsreeni_image_annotator/annotator_window.py:372
↓ 4 callersMethodannotations_in_rect
All annotations whose bounds intersect the rubber-band rect. rect is (x0, y0, x1, y1) in image coords (any corner order).
src/digitalsreeni_image_annotator/widgets/image_label.py:1124
↓ 4 callersMethodapply_image_filter
Hide image-list rows that don't match the annotation-status filter (upstream issue #27). Rows are hidden via setRowHidden, never remo
src/digitalsreeni_image_annotator/controllers/image_controller.py:173
↓ 4 callersMethodclear
Wipe all stored phrases. Used by clear_all / new project.
src/digitalsreeni_image_annotator/dialogs/dino_phrase_editor.py:355
↓ 4 callersMethoddeactivate_sam_tools
Turn off SAM box / points and clear any pending SAM state. Called before YOLO predictions overlay their own temp results and when the
src/digitalsreeni_image_annotator/controllers/sam_controller.py:37
↓ 4 callersMethoddisable_annotation_tools
(self)
src/digitalsreeni_image_annotator/annotator_window.py:1062
↓ 4 callersMethoderaser_size
(self)
src/digitalsreeni_image_annotator/widgets/canvas_context.py:23
↓ 4 callersMethodis_multi_dimensional
(self, file_name)
src/digitalsreeni_image_annotator/annotator_window.py:868
↓ 4 callersMethodload_czi
( self, image_path, dimensions=None, shape=None, force_dimension_dialog=False )
src/digitalsreeni_image_annotator/controllers/image_controller.py:513
↓ 4 callersMethodload_tiff
( self, image_path, dimensions=None, shape=None, force_dimension_dialog=False )
src/digitalsreeni_image_annotator/controllers/image_controller.py:458
↓ 4 callersFunctionmake_custom_filename
Build a fine-tuned checkpoint path under ``SAM_CUSTOM_DIR``. Ultralytics' ``build_sam`` selects the architecture by ``ckpt.endswith(token)``
src/digitalsreeni_image_annotator/training/sam_trainer.py:59
↓ 4 callersMethodpaint_brush_size
(self)
src/digitalsreeni_image_annotator/widgets/canvas_context.py:20
↓ 4 callersFunctionsave_ui_prefs
(font_pt, dark_mode, settings=None)
src/digitalsreeni_image_annotator/app_settings.py:50
↓ 4 callersMethodsetPixmap
Set the pixmap and update the scaled version.
src/digitalsreeni_image_annotator/widgets/image_label.py:212
↓ 4 callersMethodset_context
(self, ctx)
src/digitalsreeni_image_annotator/widgets/image_label.py:177
↓ 4 callersMethodset_zoom
(self, zoom_factor)
src/digitalsreeni_image_annotator/annotator_window.py:1098
↓ 4 callersMethodupdate_ui
(self)
src/digitalsreeni_image_annotator/annotator_window.py:904
↓ 3 callersMethod_annotation_contains
Hit-test a single annotation (segmentation polygon or bbox). Falls through to the bbox when segmentation is absent/None/empty — an imported
src/digitalsreeni_image_annotator/widgets/image_label.py:1072
↓ 3 callersFunction_bbox
(x, y, w, h, number)
tests/integration/test_bbox_edit_controller.py:31
↓ 3 callersFunction_bbox
(x, y, w, h, name)
tests/unit/test_canvas_selection.py:32
↓ 3 callersMethod_bbox_handle_points
Handle id -> (x, y) for the 8 resize handles of an AABB (x0, y0, x1, y1). Shared by the selection overlay (draw) and the handle hit-te
src/digitalsreeni_image_annotator/widgets/image_label.py:1178
↓ 3 callersFunction_bounds
(seg)
tests/unit/test_geometry_bounds.py:86
↓ 3 callersMethod_cap
(self, lst)
src/digitalsreeni_image_annotator/controllers/annotation_history.py:41
↓ 3 callersFunction_dense
(number=1)
tests/integration/test_annotation_history.py:52
↓ 3 callersFunction_focal_dice_loss
SAM's mask supervision: focal + dice, ≈20:1 (focal:dice). ``logits`` and ``target`` are ``(1, 1, H, W)`` on the same device; target is float
src/digitalsreeni_image_annotator/training/sam_trainer.py:127
↓ 3 callersFunction_gdino_local_path
Canonical local install path for a Grounding DINO model.
src/digitalsreeni_image_annotator/inference/dino_utils.py:45
↓ 3 callersMethod_insert_annotation_row
Append one annotation as a table row. valueChanged is connected *after* the initial setValue so building the table never fires the sim
src/digitalsreeni_image_annotator/controllers/annotation_controller.py:111
↓ 3 callersMethod_is_class_pickable
(self, class_name)
src/digitalsreeni_image_annotator/widgets/image_label.py:1102
↓ 3 callersMethod_launch
(self, groups)
src/digitalsreeni_image_annotator/controllers/sam_train_controller.py:149
↓ 3 callersFunction_list_texts
(mw)
tests/unit/test_image_list_sort.py:48
↓ 3 callersMethod_make_spin
(self, value=0.25)
src/digitalsreeni_image_annotator/dialogs/dino_phrase_editor.py:81
↓ 3 callersFunction_mask_to_polygon
(mask: np.ndarray)
src/digitalsreeni_image_annotator/inference/sam_utils.py:114
↓ 3 callersMethod_overlay_font
Overlay label font: ui-scaled, zoom-compensated (constant on screen).
src/digitalsreeni_image_annotator/widgets/image_label.py:188
↓ 3 callersFunction_selected_data
(window)
tests/integration/test_bbox_edit_controller.py:55
↓ 3 callersMethod_show_dino_batch_review
Navigate to first image with batch results for review. If the next entry refers to an image/slice that's no longer in the project (e.
src/digitalsreeni_image_annotator/controllers/dino_controller.py:554
↓ 3 callersMethod_stack
(self, key)
src/digitalsreeni_image_annotator/controllers/annotation_history.py:38
↓ 3 callersMethodactivate_slice
(self, slice_name)
src/digitalsreeni_image_annotator/controllers/image_controller.py:773
↓ 3 callersMethodadd_class
(self, class_name=None, color=None)
src/digitalsreeni_image_annotator/controllers/class_controller.py:108
↓ 3 callersMethodarray_to_qimage
(self, array)
src/digitalsreeni_image_annotator/annotator_window.py:444
↓ 3 callersMethodaugment_annotation
(self, annotation, transform_params, image_shape)
src/digitalsreeni_image_annotator/dialogs/image_augmenter.py:430
↓ 3 callersFunctionbuild_groups_from_project
Live project annotations → ``list[SampleGroup]``. Images load lazily (one at a time during training) to bound memory; in-RAM slice QImages ar
src/digitalsreeni_image_annotator/training/sam_dataset.py:35
↓ 3 callersMethodcalculate_centroid
Calculate the centroid of a polygon.
src/digitalsreeni_image_annotator/widgets/image_label.py:699
↓ 3 callersMethodchange_font_size
(self, size)
src/digitalsreeni_image_annotator/annotator_window.py:547
↓ 3 callersMethodclear_all
(self, new_project=False, show_messages=True)
src/digitalsreeni_image_annotator/annotator_window.py:734
↓ 3 callersMethodcommit_edit_baseline
Push the baseline captured by capture_edit_baseline onto the undo stack. Called when a deferred gesture actually commits. The history
src/digitalsreeni_image_annotator/controllers/annotation_controller.py:326
↓ 3 callersFunctioncreate_coco_annotation
(ann, image_id, annotation_id, class_name, class_mapping)
src/digitalsreeni_image_annotator/io/export_formats.py:127
↓ 3 callersMethodcurrent_class
(self)
src/digitalsreeni_image_annotator/widgets/canvas_context.py:26
↓ 3 callersMethoddisplay_image
(self)
src/digitalsreeni_image_annotator/controllers/image_controller.py:977
↓ 3 callersMethoddraw_annotations
Draw all annotations on the image.
src/digitalsreeni_image_annotator/widgets/image_label.py:540
↓ 3 callersFunctionexport_pascal_voc_bbox
(all_annotations, class_mapping, image_paths, slices, image_slices, output_dir)
src/digitalsreeni_image_annotator/io/export_formats.py:659
↓ 3 callersMethodhandle_editing_move
Handle mouse movement during polygon editing.
src/digitalsreeni_image_annotator/widgets/image_label.py:1486
↓ 3 callersMethodhas_annotation_selection
(self)
src/digitalsreeni_image_annotator/widgets/canvas_context.py:41
↓ 3 callersFunctionimport_coco_json
(file_path, class_mapping)
src/digitalsreeni_image_annotator/io/import_formats.py:10
↓ 3 callersMethodload_multi_slice_image
(self, image_path, dimensions=None, shape=None)
src/digitalsreeni_image_annotator/controllers/image_controller.py:541
↓ 3 callersFunctionmaybe_warn_cpu_fallback
Show the CUDA-incompatibility warning as a dialog, once per session. No-op when the device resolved cleanly (CUDA usable, or no GPU at all —
src/digitalsreeni_image_annotator/core/torch_utils.py:72
↓ 3 callersFunctionnormalize_array
(array)
src/digitalsreeni_image_annotator/core/image_utils.py:26
↓ 3 callersFunctionpolygon_to_mask
Flat ``[x1,y1,x2,y2,...]`` polygon → bool mask (inverse of ``sam_utils._mask_to_polygon``).
src/digitalsreeni_image_annotator/training/sam_trainer.py:85
↓ 3 callersMethodremove_all_temp_annotations
(self)
src/digitalsreeni_image_annotator/controllers/dino_controller.py:821
↓ 3 callersMethodreset_annotation_state
Reset the annotation state.
src/digitalsreeni_image_annotator/widgets/image_label.py:261
↓ 3 callersMethodsave_patches
(self, image, base_name, extension)
src/digitalsreeni_image_annotator/dialogs/image_patcher.py:106
↓ 3 callersMethodset_active_tool
Called by ImageAnnotator when the user switches tools. Gives the previous handler a chance to clean up (default no-op preserves the ex
src/digitalsreeni_image_annotator/widgets/image_label.py:196
↓ 3 callersFunctionset_font_pt
(mw, pt)
src/digitalsreeni_image_annotator/ui/theme.py:73
↓ 3 callersMethodtruncate_path
(self, path, max_length=40)
src/digitalsreeni_image_annotator/dialogs/dicom_converter.py:129
↓ 3 callersMethodupdate_image_list
(self)
src/digitalsreeni_image_annotator/controllers/image_controller.py:88
↓ 3 callersMethodupdate_slice_list_colors
(self)
src/digitalsreeni_image_annotator/core/annotation_utils.py:21
↓ 3 callersMethodupdate_ui_for_current_tool
(self)
src/digitalsreeni_image_annotator/annotator_window.py:1034
↓ 2 callersMethod__init__
(self, project_dir, main_window)
src/digitalsreeni_image_annotator/dialogs/yolo_trainer.py:103
↓ 2 callersMethod__init__
(self, input_files, output_dir, patch_size, overlap, dimensions)
src/digitalsreeni_image_annotator/dialogs/image_patcher.py:55
↓ 2 callersFunction_arm_edit_canvas
(window)
tests/integration/test_annotation_history.py:302
↓ 2 callersFunction_bbox_constraints_ok
(contour, user_bbox)
src/digitalsreeni_image_annotator/inference/sam_utils.py:167
↓ 2 callersFunction_bbox_of_contour
(contour: list)
src/digitalsreeni_image_annotator/inference/sam_utils.py:133
↓ 2 callersMethod_build_dino_class_configs
Build class_configs from threshold table + phrase panel.
src/digitalsreeni_image_annotator/controllers/dino_controller.py:176
↓ 2 callersMethod_cancel_bbox_drag
Escape during a shape drag: restore the original geometry, drop it.
src/digitalsreeni_image_annotator/widgets/image_label.py:1410
↓ 2 callersMethod_commit_dino_results
Commit DINO+SAM results to annotations for a single image. If image_name is the currently-displayed image, route through image_label.
src/digitalsreeni_image_annotator/controllers/dino_controller.py:495
↓ 2 callersMethod_continue
(self, pos)
src/digitalsreeni_image_annotator/widgets/tools/eraser_tool.py:144
↓ 2 callersMethod_continue
(self, pos)
src/digitalsreeni_image_annotator/widgets/tools/paint_tool.py:122
↓ 2 callersMethod_ensure_dino_model_downloaded
If the preset model isn't on disk yet, download it. Returns success.
src/digitalsreeni_image_annotator/controllers/dino_controller.py:132
↓ 2 callersFunction_flip
(flip_code=1)
tests/unit/test_augmenter_clip.py:22
↓ 2 callersFunction_poly
()
tests/integration/test_annotation_history.py:297
↓ 2 callersMethod_refresh_dino_temp_for_current
Sync ``image_label.temp_annotations`` to whatever the currently-displayed image/slice has stored in ``dino_batch_results``. Called fro
src/digitalsreeni_image_annotator/controllers/dino_controller.py:613
↓ 2 callersFunction_render_center
(label)
tests/unit/test_canvas_selection.py:209
↓ 2 callersMethod_resolve_dino_model_path
Return the canonical local path for a preset DINO model, or None if unknown.
src/digitalsreeni_image_annotator/controllers/dino_controller.py:89
↓ 2 callersMethod_restore_snapshot
Apply a whole-image snapshot back onto the live model and refresh the canvas + list. Independent deep copies break the shallow-copy al
src/digitalsreeni_image_annotator/controllers/annotation_controller.py:407
↓ 2 callersFunction_settings
()
src/digitalsreeni_image_annotator/app_settings.py:37
↓ 2 callersFunction_setup_canvas
(label, class_color)
tests/unit/test_canvas_selection.py:201
↓ 2 callersMethod_tool_buttons
Map every canvas tool name to its toolbar button. SAM tools share the same exclusive set as the manual tools (only one is ever active).
src/digitalsreeni_image_annotator/annotator_window.py:930
↓ 2 callersMethod_translate_segmentation
Shift every vertex by (dx, dy).
src/digitalsreeni_image_annotator/widgets/image_label.py:1262
↓ 2 callersMethod_undo_blocked
Undo/redo are no-ops while a project loads, a modal is open, a text field has focus, or an edit/draw gesture is in flight.
src/digitalsreeni_image_annotator/controllers/annotation_controller.py:352
↓ 2 callersMethodadd_images_to_list
(self, file_names)
src/digitalsreeni_image_annotator/controllers/image_controller.py:228
↓ 2 callersMethodadd_slice_to_list
(self, slice_name)
src/digitalsreeni_image_annotator/controllers/image_controller.py:753
↓ 2 callersMethodapply_sam_predictions_batch
(self, image: QImage, bboxes: list)
src/digitalsreeni_image_annotator/inference/sam_utils.py:489
↓ 2 callersFunctionapply_theme_and_font
(mw)
src/digitalsreeni_image_annotator/ui/theme.py:35
↓ 2 callersFunctionbbox_to_mask
``[x, y, w, h]`` → bool mask.
src/digitalsreeni_image_annotator/training/sam_trainer.py:94
↓ 2 callersFunctionbuild_groups_from_folder
Read a folder produced by ``export_sam_dataset`` → ``list[SampleGroup]``. Expects ``<folder>/manifest.json`` with entries ``{"image": "images
src/digitalsreeni_image_annotator/training/sam_dataset.py:87
↓ 2 callersMethodclear_highlighted_annotation
(self)
src/digitalsreeni_image_annotator/controllers/annotation_controller.py:602
↓ 2 callersMethodclear_history
(self)
src/digitalsreeni_image_annotator/controllers/annotation_controller.py:347
↓ 2 callersMethodclear_slice_list
(self)
src/digitalsreeni_image_annotator/controllers/image_controller.py:812
← previousnext →101–200 of 1,194, ranked by callers