Java – how to display the velocity vectors of different pixels of an image on an image?

How to display the velocity vectors of different pixels of the image on the image?

I have a vector array (VX and vy per pixel) I want to display the velocity vector (through arrows of corresponding size and direction) I need to know how to use velocity vector data (2 arrays VX and vy) to display arrow graphics / charts / images This is part of the work of displaying optical flow output (image processing)

Solution

You can use drawing libraries such as this library (Java SDK native) to draw lines on images:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>