How to programmatically toggle the segmentation overlay on and off.
I have written a Premier application that presents an ROI over a captured image and allows the operator to moved it and size. The Count/Size Threshold dialog is displayed and allows the operator to threshold for counting purposes. This works as expected. I now would like to do the same thing on a Live Preview image and I can do this as well. However, as soon as the threshold tool is executed the area within the ROI is captured. Is it possible to momentarily disable the overlay to focus the area within the ROI? Or, must you close the Threshold dialog? I would like to assign a keyboard key that could be used to hide the overlay when pressed and when release, restored. This would assist in the focus process, view live image and then return the overlay.
0
Best Answer
-
Threshold dialog has the Show button, which you can use to toggle overlay without closing the dialog. Also this option is recordable, so you can toggle overlay programmatically (activate recording and check the code switching the overlay on or off).You can assign the recorded macro to a key or call it from your code.0
Answers
-
Yuri; Works great, sorry I did not see this before. This also answers my other question about the live image within an ROI.
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions