Git Product home page Git Product logo

frame-block-matching's People

Contributors

javiribera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

frame-block-matching's Issues

frames stored with imsave are too noisy

I ran this code line by line to check each results returned. I noticed that frames stored with imsave are extremely noisy and not correlated with the image.

For instance running:
imsave('frames_of_interest/target.png', target_frm)
imsave('frames_of_interest/target.png', anchor_frm)
imsave('frames_of_interest/predicted_anchor.png',predicted_frm) or
imsave('frames_of_interest/error_image.png', error_image)

Returns frames like this:
target frame
anchor frame
predicted anchor
error image

As consequence, I get this quivers which don't seem to make much sense as the change between frames occurs only at the center, yet the quivers move in most directions: quivers and with:
>>> print('PSNR: %s dB' % psnr)
>>> PSNR: 8.295459574843925 dB

Here are the manual steps that I have taken to generate these:
target_frm = np.fromfile('P-thumbnails-1.png',dtype=np.uint8, count=640*360)
anchor_frm = np.fromfile('P-thumbnails-2.png',dtype=np.uint8, count=640*360)
target_frm = np.reshape(target_frm, (360, 640))
anchor_frm = np.reshape(anchor_frm, (360, 640))
ebma = EBMA_searcher(16, 7, 1, 1) predicted_frm, motion_field = \ ebma.run(anchor_frame=anchor_frm, target_frame=target_frm)

I think some debugging in the code is required. As I have taken the steps outlined to generate the vectors but the returned frames are too noisy.

Btw, I used these two images: Img1 and Img2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.