overmapper.rb
def box_transform(box, ix, iy)
  box[0] = (ix * XO) + (box[0] * @conf[:scale])
  box[1] = (iy * YO) + (box[1] * @conf[:scale])
  box[2] = (ix * XO) + ((box[2]+1) * @conf[:scale])
  box[3] = (iy * YO) + ((box[3]+1) * @conf[:scale])

  box
end
# Transform box to image coordinates for given overmap
Transform box to image coordinates for given overmap
Transform box to image coordinates for given overmap
def box_transform(box, ix, iy)
  box[0] = (ix * XO) + (box[0] * @conf[:scale])
  box[1] = (iy * YO) + (box[1] * @conf[:scale])
  box[2] = (ix * XO) + ((box[2]+1) * @conf[:scale])
  box[3] = (iy * YO) + ((box[3]+1) * @conf[:scale])
  box
end
def box_transform ( box , ix , iy ) box [ 0 ] = ( ix * XO ) + ( box [ 0 ] * @conf [ :scale ] ) box [ 1 ] = ( iy * YO ) + ( box [ 1 ] * @conf [ :scale ] ) box [ 2 ] = ( ix * XO ) + ( ( box [ 2 ] + 1 ) * @conf [ :scale ] ) box [ 3 ] = ( iy * YO ) + ( ( box [ 3 ] + 1 ) * @conf [ :scale ] ) box end
Transform box to image coordinates for given overmap
Transform box to image coordinates for given overmap
box
ix
iy