Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

construct ROI

Solved!
Go to solution

Hello

 

I have an image that I process and I would like to allow the user to specify a ROI (a rectangle would be good) to work on.

My input is my 16 bits image (1024x768) and I would like to have as output an image which will be the rectangular portion of image chosen by the user.

Please find enclosed my image.

 

Thanks for your help

 

0 Kudos
Message 1 of 8
(4,206 Views)
Solution
Accepted by luckyloic

Take a look at this vi.  Draw an ROI on the left image and the contents will be drawn in the right image.

Randall Pursley
0 Kudos
Message 2 of 8
(4,196 Views)

Thank you

 

it works very well

 

0 Kudos
Message 3 of 8
(4,187 Views)

Hi,

I want to costruct an ROI from bounding Box.

How can I construct?

Please Help.

Regards
Vipin Kumar
0 Kudos
Message 4 of 8
(3,959 Views)

Hi Sir,

 

I have a question for the ROI, normally when i draw the rectangle without degree, then "Global Ractangle" and "Points“ are the same, but if I draw it with degree, then it is not the same.

Do you know why ?

Thanks.

 

Brzhou_1-1689408729990.png

 

 

Learning from other people
0 Kudos
Message 5 of 8
(1,257 Views)

The Global rectangle is a standard, non-rotated rectangle that will fit around your rotated rectangle. The Points that make it up are the actual corner points before rotation about their centre.

AgiMikeB_0-1689580167916.png

The Orange rectangle here is the Points with a rotation of 45 degrees and the blue would be the Global Rectangle

0 Kudos
Message 6 of 8
(1,215 Views)

Thanks.

So normally we define the points, then it is enough, right ?

Learning from other people
0 Kudos
Message 7 of 8
(1,210 Views)

Yes, define the points and the global rectangle will be automatically created for you

Message 8 of 8
(1,201 Views)