Hello friends! I am trying to create my own step for the Vision builder and I have some difficulties. Below, I have completely missed how the step should work, but now the problem is with the roi.
There is an image, the ROI area is highlighted in the previous steps, then my new step goes, in which this area is also highlighted and an array of pixels is formed, which is transmitted to the Matlab code, in which certain operations are performed (extraction and measurement for a curved product) then the processed image is returned from the matlab code (the array is then converted into an image) and the measurement result (number) is returned.
But problems arose at the very beginning, it is not entirely clear how to get ROI from the previous steps. In the Main tab, the Region of Interest selection area is not active, and in the custom code area there is only the ROI Descriptor.
How can I get the ROI area from the previous step? The attachment is a simple example of allocating ROI in an image and cropping an image along a ROI area. This is what I need to pass in my step.