Skip to content

feat: Add ROI selection to stage explorer, and scan button to scan selected ROI #428

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 29 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
5ad4414
wip rois
fdrgsp May 7, 2025
c942ff9
better keypress
tlambert03 May 7, 2025
6ddd698
wip
tlambert03 May 7, 2025
e4a72b8
small fixes
fdrgsp May 8, 2025
422879f
cleanup
tlambert03 May 8, 2025
e4d3577
add helpers
tlambert03 May 8, 2025
b6ee508
make snap defatul
tlambert03 May 8, 2025
95f136a
rename
tlambert03 May 8, 2025
17f263a
style(pre-commit.ci): auto fixes [...]
pre-commit-ci[bot] May 8, 2025
a1e1b08
break out manager
tlambert03 May 8, 2025
20ad25f
fix demo
tlambert03 May 8, 2025
a599c60
fix again
tlambert03 May 8, 2025
16f8dae
move roi manager
tlambert03 May 8, 2025
04d4648
style(pre-commit.ci): auto fixes [...]
pre-commit-ci[bot] May 8, 2025
b5830fa
move roi manager
tlambert03 May 8, 2025
318e158
Merge branch 'stage-explorer-rois' of https://github.com/fdrgsp/pymmc…
tlambert03 May 8, 2025
bc8d124
better handle mouse move
tlambert03 May 8, 2025
7cdff11
better handle mouse move
tlambert03 May 8, 2025
11a3768
fix
tlambert03 May 8, 2025
b978c65
more cleanup
tlambert03 May 8, 2025
f45ec7c
remove another mouse event
tlambert03 May 8, 2025
e4f1e6b
cleanup
tlambert03 May 8, 2025
4a556d1
cleanup
tlambert03 May 8, 2025
073bf31
scan area button
tlambert03 May 8, 2025
1cf3c5f
style(pre-commit.ci): auto fixes [...]
pre-commit-ci[bot] May 8, 2025
d1ee3d4
only if not running
tlambert03 May 8, 2025
c83377d
Merge branch 'stage-explorer-rois' of https://github.com/fdrgsp/pymmc…
tlambert03 May 8, 2025
d01974b
fix tests
tlambert03 May 10, 2025
65bf77f
fix types
tlambert03 May 10, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions examples/stage_explorer_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,16 @@
app = QApplication([])

mmc = CMMCorePlus.instance()
mmc.loadSystemConfiguration()

# set camera roi (rectangular helps confirm orientation)
mmc.setROI(0, 0, 400, 600)
# mmc.loadSystemConfiguration(r"D:\Christina\MyChristina.cfg")
# mmc.setConfig("Channel", "BF")
# mmc.setExposure(10)

mmc.loadSystemConfiguration()
mmc.setROI(0, 0, 400, 600)
xy = mmc.getXYStageDevice()
if mmc.hasProperty(xy, "Velocity"):
mmc.setProperty(xy, "Velocity", 2)
mmc.setProperty(xy, "Velocity", 5)

explorer = StageExplorer()

Expand Down
Loading
Loading