Questions tagged [roi]

Region Of Interest, a region of an image on which algorithms are executed on.

Region Of Interest (ROI) is a selected subset of a data set identified for a particular purpose and is commonly used in many application areas. The data set could be any of the following:

  • 1D data set: a time or frequency interval on a waveform
  • 2D data set: the boundaries of an object on an image
  • 3D data set: the contours or surfaces outlining an object (a.k.a. the Volume of Interest (VOI)) in a volume
  • 4D data set: the outline of an object at or during a particular time interval in a time-volume

Tag Usage:

An ROI on an image can be defined in different formats, like a , a or a set of . The tag is commonly used in question related to or . An ROI can be defined to:

  • Restrict the region of the data set that an algorithm is applied to and avoid unnecessary calculations. (e.g., in an )
  • Identify/Annotate a part of data set. (e.g., locate moving objects in )
  • Extract additional information from the data set. (e.g., measure size of a tumor on a medical image)

An Example:

ROI locates the boundaries of a registration plate (it's Persian), this area will be used for ANPR:

enter image description here

Additional Reading:

Region of Interest on Wikipedia

441 questions
2
votes
1 answer

Best way to plot array as image with ROI selection and scale

I have a 2D numpy array that I need to plot as an image with a certain scale. Within that image I need to be able to select a ROI or at least be able to display the mouse coordinates (of a specific target contained in the image). I tried using…
Victoria Price
  • 637
  • 3
  • 13
  • 26
2
votes
2 answers

How to draw a rectangle in opencv dynamically according to image width and height?

i want to draw a rectangle in opencv according to the image width and height (i.e. i don't want to give a static values to cvRectangle) i want to draw a rectangle which covers most of the region of any image big or small in other words i want to…
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
1
vote
1 answer

Imagej : How to save work in an editable way.With ROI measure and image associated togheter?

In ImageJ i need to save all the ROI Measure (in the ROI manager) associated with the image. And have the possibility to open lately still editable (move the Line , move the point , save measure in result) So also have ImageJ a File where can save a…
0nT0theImage
  • 11
  • 2
  • 5
1
vote
1 answer

OpenCV : the difference between mask and ROI

I tried to set a ROI with angle in an image. At first, I thought that using a mask would give me the same result as setting the ROI in my IplImage structure. Then, I would just use cvResize the same way I did when I used ROI, but this time for a…
CTZStef
  • 1,675
  • 2
  • 18
  • 47
1
vote
1 answer

OpenCV : set ROI with angle?

I'd like to use a ROI to copy a found polygon in an image, into a new image. I'd like this polygon to fit exactly in the new image. So far I used ROI, but I noticed that the angle is not taken into account, which give me bad result as soon as I…
CTZStef
  • 1,675
  • 2
  • 18
  • 47
1
vote
2 answers

GLImageProcessing ROI (Region of Interest)

I am currently trying to blur a part of an image. I use apple's example code here The example code itself can blur whole image and draw it to the EAGLView, what I want to do is blur only part of the image by supplying an ROI. I do not know how to…
Sarpdoruk Tahmaz
  • 1,418
  • 3
  • 17
  • 25
1
vote
1 answer

cvSetImageROI in a loop

I'm just beginning to learn OpenCV and I would like to ask about how can I possibly use cvSetImageROI in a loop. The problem is that, I would like to divide an image into 9 equal regions and check each region for lines or curves. However, I don't…
cmsl
  • 271
  • 2
  • 7
  • 17
1
vote
1 answer

How to get the coordinates of text on an image with Node.js?

I am trying to get the x and y coordinates of specific text on an image like this. On this image I am trying to detect where X:input Y:input is located which could be anywhere on future images. In this case I would expect it to be around 714, 164,…
user21203895
1
vote
1 answer

How do I get the ROI of both eyes of a face

I am currently trying to get the ROI of both eyes in a face. However, it is only returning the right eye. How do I get the ROI of both eyes like in a single frame? for (x,y,w,h) in faces: cv2.rectangle(img, (x, y), (x + w, y + h),(0,255,0),…
AaronTan21
  • 33
  • 5
1
vote
0 answers

How can I calculate the (Cost vs. ROAS) forecast via the API?

I want to call the API to get the (Cost vs. ROAS) forecast. It's visible on GA-FE, but the response object doesn't contain the ROAS or any value…
1
vote
1 answer

Calculating expected ROAS (return on advertising spend) based on historical data

I need to calculate what ROAS (return on advertising spend) I should have on days e.g. 7, 14, 28 after the launch of a campaign to get 120% on day 365. I have the spend and the revenue numbers readily available. I would like to use spreadsheets only…
Nata
  • 49
  • 6
1
vote
1 answer

Pyqtgraph ROI Mirrors the Displayed Text

I want to display some text close to the handles of crosshair ROI. The text is mirrored and I don't know why or how to fix it. The following code runs, where the class CrossHair is a slight modification of the CrosshairROI given at…
温泽海
  • 216
  • 3
  • 16
1
vote
1 answer

Selecting ROI for Object Tracking from uninterrupted video stream with Python OpenCV

I was following this tutorial https://www.pyimagesearch.com/2018/07/30/opencv-object-tracking/ that allows you to create an ROI from a static screenshot of the video stream to do basic object tracking (not detection). I was wondering if it was…
ansib1e
  • 11
  • 1
1
vote
1 answer

How to convert a (bit masked) image to ROI in the image with script

For example in the image shown below, the left side is the (bit masked) image, and I want to create a closed ROI with their vertex connecting the contour of the virtual aperture, shown on the right side (which is drawn by hand, not precise to the…
w4m
  • 301
  • 1
  • 10
1
vote
0 answers

Relation between `pos` and `ROI`

In the documentation https://pyqtgraph.readthedocs.io/en/latest/graphicsItems/roi.html, it is mentioned that the pos argument "(length-2 sequence) Indicates the position of the ROI’s origin. For most ROIs, this is the lower-left corner of its…
温泽海
  • 216
  • 3
  • 16