Convert points coordinates from camera screen to integer positions (pixels) of image.

2 Ansichten (letzte 30 Tage)
I have to write a function which takes as inputs the size of the camera screen HxW, the size of the canvas MxN and the coordinates of the points with respect to the camera screen and returns as output the coordinates of the points with respect to the image canvas (pixels). My problem is that I really don’t know from where to start and any tip would be really appreciated.
  2 Kommentare
Jan
Jan am 2 Mai 2019
This sounds like a job for interp1.
Start with writing the function line, which defines inputs and outputs. Explain clearly, what "the coordinates of the points with respect to the camera screen" means - in valid Matlab syntax.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB Support Package for IP Cameras finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by