Skip to content

IbraDje/ERP-CMP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ERP-CMP

EquiRectangular - CubeMap Projections


cmpToErp :

getErpPatch(campFaces)

CubeMap Projection to EquiRectangular Projection

Parameters:
  • cmpFaces : CubeMap Projected Faces (OpenCV BGR Format): front, right, back, left, top, bottom with shape : [6, H, W, 3]
Returns:
  • erpPatch : Equirectangular Projected Image with shape : [H, W*2, 3]

erpToCmp :

getCmpFaces(erpPatch, H=None, W=None)

EquiRectangular Projection to CubeMap Projection Function

Parameters:
  • erpPatch : Equirectangular Projected Image (OpenCV BGR Format)
  • H : Height of CMP Faces (default : erpPatch.shape[0] // 2)
  • W : Width of CMP Faces (default : erpPatch.shape[1] // 4)
Returns:
  • cmpFaces : CubeMap Projected Faces: front, right, back, left, top, bottom with shape : [6, H, W, 3]

References

  1. https://github.com/rayryeng/cubic2equi/blob/master/cubic2equi.m
  2. https://github.com/pepepor123/equirectangular-to-cubemap