I have some dataset, and I want to write camera class for it. When it comes to camera object, should prcppoint be expressed in pixels, or unitless? I saw in your code you divide cx and cy with height and width. So, which one is correct? (cx, cy, width, height are expressed in pixels):
Hello.
I have some dataset, and I want to write camera class for it. When it comes to camera object, should
prcppoint
be expressed in pixels, or unitless? I saw in your code you dividecx
andcy
withheight
andwidth
. So, which one is correct? (cx
,cy
,width
,height
are expressed in pixels):self.prcppoint = np.array([self.cx / self.image_width, self.cy / self.image_height])
self.prcppoint = np.array([self.cx, self.cy])