question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enhancement: subpixel processing

See original GitHub issue

Hi David,

Many thanks for your great image morphing application!

I created this Python command line program based on your work:

https://github.com/jankovicsandras/autoimagemorph

The main difference (beside no GUI) is that autoimagemorph selects the points automatically, using cv2.goodFeaturesToTrack() .

I noticed some image artifacts (bright pixels probably at Delaunay triangle edges) and found a simple method to remove them: upscale the image (for example 4x width and height), do the processing, downscale it to original size again. I call this subpixel processing in autoimagemorph , and the obvious downside is much more time and memory required (approx. 16x slower using -subpixel 4) . Still, it might be a good idea to provide this function optionally for better quality, as it’s very easy to implement.

Keep up the good work! 😃

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jankovicsandrascommented, Dec 3, 2020

Great work! Thank you. 😃 👍

0reactions
ddowd97commented, Dec 2, 2020

Apologies for the long delay (I was working under an intensive .NET training program), but I’ve finally resolved this issue with my latest release to this repository. In short, my algorithm for interpolating images was completely correct but the lack of documentation for RectBivariateSpline()'s kx and ky parameters was causing unnecessary artifacts to appear in the blends.

    

Before                                                                           After

Since this has now been fixed and hot pixels no longer appear (from what I can tell), I’m finally closing this issue. Thanks!

(I should also note that I’ve added your goodFeaturesToTrack() suggestion to my To Do list.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Sub-pixel resolution - Wikipedia
In digital image processing, sub-pixel resolution can be obtained in images constructed from sources with information exceeding the nominal pixel resolution ...
Read more >
Image sequence enhancement using sub-pixel displacements
Abstract: Given a sequence of images taken from a moving camera, they are registered with subpixel accuracy in respect to translation and rotation....
Read more >
Subpixel - what is it? - Signal Processing Stack Exchange
Sub-pixel is a virtual pixel defined between two actual pixels in an image capturing sensor. to enhance the resolution or image quality, ...
Read more >
A Sub Pixel Resolution Method - arXiv
introduce a new sub pixel resolution algorithm to enhance the resolution of images. This method is based on the analysis of multi-.
Read more >
Image resolution enhancement using subpixel camera ...
An oversampled image is made by mixing several images with subpixel camera displacement. Finally, a deconvolution technique reduces the low pass filtering ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found