roiFromBB

PURPOSE ^

ROIFROMBB.m is a function for extracting roi from images given a bounding box

SYNOPSIS ^

function imgOUT=roiFromBB(imgIN,bbIn)

DESCRIPTION ^

 ROIFROMBB.m is a function for extracting roi from images given a bounding box

  ROIFROMBB is a function that extracts image roi from an image given a
  bounding box

   INPUT:
  -imIN input image (can be grayscale, depth or color image)
  -bbIn input bounding box in the format [topLeftY, topLeftX,
   bottomRightY, bottomRightX] read as [rowIndexTopLeft, columnIndexTopLeft,
   rowIndexBottomRight, columnIndexBottomRight]

   OUTPUT
  -imOUT selected ROI

 See also INITDISTRIBUTIONFAST, CHECKOCCLUSIONSDSKCF_NOISEMODEL,
 CHECKOCCLUSIONSDSKCF_SECONDPLANE, OCCLUDINGOBJECTSEGDSKCF,
 SINGLEFRAMEDSKCF,

  University of Bristol
  Massimo Camplani and Sion Hannuna

  massimo.camplani@bristol.ac.uk
  hannuna@compsci.bristol.ac.uk

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 % ROIFROMBB.m is a function for extracting roi from images given a bounding box
0002 %
0003 %  ROIFROMBB is a function that extracts image roi from an image given a
0004 %  bounding box
0005 %
0006 %   INPUT:
0007 %  -imIN input image (can be grayscale, depth or color image)
0008 %  -bbIn input bounding box in the format [topLeftY, topLeftX,
0009 %   bottomRightY, bottomRightX] read as [rowIndexTopLeft, columnIndexTopLeft,
0010 %   rowIndexBottomRight, columnIndexBottomRight]
0011 %
0012 %   OUTPUT
0013 %  -imOUT selected ROI
0014 %
0015 % See also INITDISTRIBUTIONFAST, CHECKOCCLUSIONSDSKCF_NOISEMODEL,
0016 % CHECKOCCLUSIONSDSKCF_SECONDPLANE, OCCLUDINGOBJECTSEGDSKCF,
0017 % SINGLEFRAMEDSKCF,
0018 %
0019 %  University of Bristol
0020 %  Massimo Camplani and Sion Hannuna
0021 %
0022 %  massimo.camplani@bristol.ac.uk
0023 %  hannuna@compsci.bristol.ac.uk
0024 
0025 function imgOUT=roiFromBB(imgIN,bbIn)
0026 
0027 imgOUT=imgIN(bbIn(2):bbIn(4),bbIn(1):bbIn(3),:);
0028 end

Generated on Thu 24-Nov-2016 18:03:21 by m2html © 2005