Blogs

Applications of dot and cross products

John Wellbelove

Sometimes in graphical applications there is a need to know the relative position of a point with respect to a line from a reference point. Where is the target in relation to the reference and its direction?

Read more →


Scanning an arbitrarily rotated rectangular region

John Wellbelove

Quite often in image processing we need to scan a rectangular region in an image. The region is usually aligned to capture a specific feature in the image. You may be presented with a skewed image, necessitating that the region should also be skewed.

Read more →


Finding the crossing points of two lines

John Wellbelove

Finding the crossing points of two lines without using trigonometry.

Read more →


Implementing a moving average

John Wellbelove

Known by many names, such as as Cumulative Moving Average, Rolling Average, Running Average, Moving Mean or Rolling Mean, the object is to update an average value on receipt of a new value over a set window size.

Read more →