Skip to content

Commit

Permalink
Update roi_tutorial_new_2025.md
Browse files Browse the repository at this point in the history
  • Loading branch information
sronilsson authored Feb 1, 2025
1 parent 221a649 commit bbb43f7
Showing 1 changed file with 7 additions and 26 deletions.
33 changes: 7 additions & 26 deletions simba/roi_tutorial_new_2025.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,30 +306,19 @@ The `File` drop-down in the **REGION OF INTEREST (ROI) SETTINGS** header also c

3) **LINE TYPE**: Most often you wouldn't need to worry about this. It controls how lines are visualized on the frame through the [OpenCV](https://hawk-tech-blog.com/python-opencv-line-type/) library. In most cases its safe to keep this at `-1`.


[change_highlight_clr.webm](https://github.com/user-attachments/assets/bef08c2f-155e-4ff3-a9b0-395bfcffd535)


To draw shapes of specific metric sizes (i.e., specified size in millimeters), first open the `File (ROI)` drop-down menu at the head of the **REGION OF INTEREST (ROI) SETTINGS** menu and click the `Draw ROIs of pre-defined sizes` option:








## Apply shapes from another video
## APPLY SHAPES FROM ANOTHER VIDEO

Sometimes we have created ROIs in one video, saved them, and opened up a second video to start drawing new ROIs on this second video. Now we may want to replicate the ROIs on the first video on the second video, and we can do this with the `Apply shapes from another video` sub-menu.

1. To duplicate the ROI shapes already defined in a different video on the current video, navigate to the `Select video` dropdown menu in the `Apply shapes from another video` menu. This dropdown menu will show the videos in your SimBA project that has defined ROIs.

2. In this dropdown menu, select the video which has the ROIs you wish to replicate. Once selected, click `Apply`. The ROIs from the video in the `Select video` dropdown menu will appear on the frame.

<p align="center">
<img src="https://github.com/sgoldenlab/simba/blob/master/images/Apply_shapes_other_video.gif" />
</p>

[apply_video_from_different.webm](https://github.com/user-attachments/assets/df8c497d-05c0-4259-94ab-032c9c29d290)


## Delete all ROI definitions in your SimBA project
Expand All @@ -342,21 +331,13 @@ Somtimes we may want to delete all ROI definitions in a SimBA project and start
<img src="https://github.com/sgoldenlab/simba/blob/master/images/ROI_delete.png" />
</p>

2. Click `Yes` to delete all ROI definitions in a SimBA project.










2. Click `Yes` to delete all ROI definitions in a SimBA project.

> [!NOTE]
> Your ROIs are saved inside your SImBA project, at the location `project_folder/logs/measures/ROIdefinitions.h5`. To delete the ROIs in the SImBA project, you could also manually delete this file.

## Next steps
## NEXT STEPS
Once your ROI definitions are all defined, close the `ROI table`, `Regions of Interest Settings` and `Define Shape` windows and head back to the [ROI] tab in the load project menu.


Expand Down

0 comments on commit bbb43f7

Please sign in to comment.