Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new motion blur module #1622

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

niravasher
Copy link

Fixes #1618 (<=== Replace 0000 with the Issue Number)

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with npm run test-all
  • code is in uniquely-named feature branch and has no merge conflicts
  • PR is descriptively titled
  • ask @publiclab/is-reviewers for help, in a comment below
  • Insert-step functionality is working correct as expected.

We're happy to help you get this ready -- don't be afraid to ask for help, and don't be discouraged if your tests fail at first!

If tests do fail, click on the red X to learn why by reading the logs.

Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!

@niravasher
Copy link
Author

Screenshot from 2020-02-12 22-55-14
The blur is set in the correct direction, it needs to be used with the crop module as empty white space remains.

Copy link
Member

@harshkhandeparkar harshkhandeparkar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few small changes required.

You'll also have to add an entry for this in the module docs.


function draw(input, callback, progressObj) {

const defaults = require('./../../util/getDefaults.js')(require('./info.json'));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can the require statement be pushed to the top?

sin = Math.sin(radians);
// Final dimensions after rotation

const finalPixels = require('ndarray')(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

]
);

pixels = require('./MotionBlur')(pixels, finalPixels, rotate_value, width, height, cos, sin);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here as well.

ndarray = require('ndarray');

module.exports = exports = function(pixels, finalPixels, rotate_value, width, height, cos, sin) {
const pixelSetter = require('../../util/pixelSetter.js');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this file too

"step": "1"
}
},
"docs-link":"https://github.com/publiclab/image-sequencer/blob/main/docs/MODULES.md#blur-module"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs the correct link.

@jywarren jywarren added this to the v3.7.0 milestone Oct 28, 2020
@harshkhandeparkar harshkhandeparkar added this to In Progress in v3.7.0 via automation Nov 2, 2020
@harshkhandeparkar harshkhandeparkar removed this from the v3.7.0 milestone Nov 2, 2020
@harshkhandeparkar harshkhandeparkar added the almost-complete PRs that are almost done but little more work. label Jul 27, 2021
@harshkhandeparkar harshkhandeparkar requested review from a team as code owners July 27, 2021 21:11
@gitpod-io
Copy link

gitpod-io bot commented Jul 27, 2021

@harshkhandeparkar harshkhandeparkar marked this pull request as draft July 27, 2021 21:15
@harshkhandeparkar harshkhandeparkar removed the almost-complete PRs that are almost done but little more work. label Jul 27, 2021
@jywarren jywarren removed this from In Progress in v3.7.0 Jan 25, 2022
@jywarren jywarren added this to In progress in v3.7.x via automation Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
v3.7.x
In progress
Development

Successfully merging this pull request may close these issues.

Motion blur
3 participants