Understanding the positive and negative overlap range

Technical Source
2 min readMay 31, 2021

--

Hi all and thank you for responding to my questions in advance!

I am trying to obtain a simple understanding of the negative and postive ranges.

I read the documentation in matalb for the understanding but i still don’t get it and the explanation there is still complex!

% Adjust NegativeOverlapRange and PositiveOverlapRange to ensure
% that training samples tightly overlap with ground truth
'PositiveOverlapRange' A two-element vector that specifies a range of
% bounding box overlap ratios between 0 and 1.
% Region proposals that overlap with ground truth
% bounding boxes within the specified range are used
% as positive training samples.
%
Default: [0.5 1]
%
'NegativeOverlapRange' A two-element vector that specifies a range of
% bounding box overlap ratios between 0 and 1.
% Region proposals that overlap with ground truth
% bounding boxes within the specified range are used
% as negative training samples.
%
Default: [0.1 0.5]

I am aware of what 3 variables after the trainRCNNObjectDetector are and what they do and how to achieve this! but ranges are confusing me understanding!

my questions in regards to image processing;

  1. what is the threshold actually controlling/ doing for the positive and negative overlap range
  2. Is there a link to understand this on youtube etc to get a simple break down of what this does or is? I have been trying this but maybe my terminology is incrorrect!!
  3. I specified only the negative range, what happends when I don’t specify the positive range?
  4. what happends when i specify both positive and negative ranges?
  5. what am I really telling the system to do actually?!!!?!?!!!?!
  6. if I modify the Positive Overlap Range, What am I Actually Doing, Same for the Negative Over Lap Range?

I have my code taken from the rcnn stop sign example in math lab;

rcnn = trainRCNNObjectDetector(BCombineData, Tlayers, options, 'NegativeOverlapRange', [0 0.3]);
rcnn = trainRCNNObjectDetector(BCombineData, Tlayers, options, 'PositiveOverlapRange', [0.5 1] ,'NegativeOverlapRange', [0 0.3]);
rcnn.RegionProposalFcn;
network = rcnn.Network;
layers = network.Layers;

ANSWER

Matlabsolutions.com provide latest MatLab Homework Help,MatLab Assignment Help for students, engineers and researchers in Multiple Branches like ECE, EEE, CSE, Mechanical, Civil with 100% output.Matlab Code for B.E, B.Tech,M.E,M.Tech, Ph.D. Scholars with 100% privacy guaranteed. Get MATLAB projects with source code for your learning and research.

As you might know, Object Detection involves dividing the input image into multiple pieces and identifying the presence of object in each individual piece. An enhancement to this is involving segmentation process in Object Detection using Region Proposal Networks in conjunction with Fast RCNN Algorithm.

Answering your queries:

  • Positive/Negative Overlap Range specify to the nework to treat the region under consideration as positive/negative (in the presence of an object), by computing Intersection over Union (IoU) with ground truth data.

SEE COMPLETE ANSWER CLICK THE LINK

--

--

Technical Source
Technical Source

Written by Technical Source

Simple! That is me, a simple person. I am passionate about knowledge and reading. That’s why I have decided to write and share a bit of my life and thoughts to.

No responses yet