I would like to know how to transform the speed that the optical flow gives me from frames per pixel to meters per second
조회 수: 1 (최근 30일)
이전 댓글 표시
Il mio progetto consiste nell'eseguire l'optical flow su un video che simula l'andamento di un drone. L'obiettivo finale è quello di stimare la velocità media del drone. Però prima di arrivare a ciò mi servirebbe sapere come trasformare le velocità su x e y che mi restituisce l'optical flow da pixel per frame a metri al secondo.
My project consists of performing optical flow on a video that simulates the movement of a drone. The final goal is to estimate the average speed of the drone. But before getting to this I would need to know how to transform the speeds on x and y which gives me the optical flow from pixels per frame to meters per second
댓글 수: 1
ag
2023년 10월 13일
Hi Antonio,
I understand that you need to convert the output from the “optical flow” toolbox, which is in frames per second, to meters per second.
To do so, you can try the below formula and see if it works,
velocityInMetersPerSecond = opticalFlowVelocity * spatialScale * frameRate;
opticalFlowVelocity – the output from the toolbox (pixels per frame)
spatialScale – calculated by relating the known distance in the image to the corresponding number of pixels (meters per pixel)
frameRate – frames per second
Hope this helps!
Best Regards,
Aryan Gupta
답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!