--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/3e545fb1-b973-4474-8984-ad4bbd970315%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Virginia,In the next version of Bonsai this will be much easier. If you want to give it a try, feel free to download the 2.4-preview version. Using the new context menu "Create Property Source" you can automatically construct a data source that is based on the specified property of interest. This source will keep the visual editor but will also allow you to directly access the values modified in the editor as data in the workflow.For the current version, the workaround for this limitation is to use the RoiActivity node. The output of this node happens to give you the bounding box of defined regions, which you can use as an input to Crop. Another option is to define a mask using MaskPolygon and then segment it interactively using FindContours, etc, and then use the Rect property to extract the bounding box, but this might be too creative for what you are after.Hope this helps, and let me know if you would like me to elaborate on any of these options.
On 11 September 2018 at 16:31, Virginia Rutten <gin.r...@gmail.com> wrote:
Hi Bonsai Team,
Question: Could you tell me how I can interactively select an ROI in one frame and use the 'Rect' as an input to crop this frame?or how I to access cursor values on an image (the one which appears at the bottom when I right click on it)?I was hoping to use this to be able to select an ROI interactively to e.g.: crop the image.So far I have something like this: I outsource the properties of crop and I was thinking that I could have a “keydown” condition, and upon this I would select a bounding box (or at worse an x,y cursor position to determine the origin of the box) and use this to set the `Rect` which is needed to crop.Thanks for any help!V
--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/0e82245a-dedd-4388-95a0-52eabe06387e%40googlegroups.com.
Yeah, there is a bit of a trick to accessing them. After you select the Item property, you need to add an index to indicate which ROI you want to pick, something like: Item[0]. You need to type in the square brackets and the index by hand on top of the Selector property (after you have picked up the node).This will all be much easier in the next version (including picking up elements in arrays).
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai...@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/2df95b4b-b469-4ac2-a0a7-dae68ca90b1c%40googlegroups.com.