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

Various module ideas to be broken out into separate issues #165

Open
7 of 9 tasks
jywarren opened this issue Feb 2, 2018 · 10 comments
Open
7 of 9 tasks

Various module ideas to be broken out into separate issues #165

jywarren opened this issue Feb 2, 2018 · 10 comments

Comments

@jywarren
Copy link
Member

jywarren commented Feb 2, 2018

Here's a list of possible modules and links to other code we could use to implement them.

Module Candidates, related ideas

Referencing earlier states

Complex sequences with masking could require accessing previous states (or nonlinearity):

  • flood-fill an area (see above)
  • select only the flooded area (could use overlay module somehow)
    • roundabout: lighten everything to <50%, then flood-fill with black? Not 100% reliable.
    • roundabout 2: flood fill, then blink-diff with original
  • then add step which recovers original image, repeat flood-fill/blink-diff for second region
  • reference above masked states in a mask module

Notes:

pattern-fill module to fill areas with patterns in a JS canvas:

var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
var img=document.getElementById("lamp");
var pat=ctx.createPattern(img,"repeat");
ctx.rect(0,0,150,100);
ctx.fillStyle=pat;
ctx.fill();

Masking:

ctx.save();
ctx.beginPath();
ctx.moveTo(0, 0);
ctx.lineTo(160, 600);
ctx.rect(0, 0, 160, 600);
ctx.closePath();
ctx.clip();
ctx.drawImage(img, 0, 0);
ctx.restore();

https://github.com/inspirit/jsfeat has a range of features:

JavaScript Computer Vision library

The project aim is to explore JS/HTML5 possibilities using modern & state-of-art computer vision algorithms.

Examples and Documentation

Features

  • Custom data structures
  • Basic image processing methods (grayscale, derivatives, box-blur, resample, etc.)
  • grayscale (Demo)
  • box blur (Demo)
  • gaussian blur (Demo)
  • equalize histogram (Demo)
  • canny edges (Demo)
  • sobel deriv (Demo)
  • scharr deriv (Demo)
  • find more at Examples and Documentation page
  • Linear Algebra module
  • LU (Gaussian elimination) solver
  • Cholesky solver
  • SVD decomposition, solver and pseudo-inverse
  • Eigen Vectors and Values
  • Multiview module (Demo)
  • Affine2D motion kernel
  • Homography2D motion kernel
  • RANSAC motion estimator
  • LMEDS motion estimator
  • Matrix Math module for various matrix operation such as traspose, multiply etc.
  • Features 2D
  • Fast Corners feature detector (Demo)
  • YAPE06 feature detector (Demo)
  • YAPE feature detector (Demo)
  • ORB feature descriptor (Demo)
  • Lucas-Kanade optical flow (Demo - click to add points)
  • HAAR object detector (Demo)
  • BBF object detector (Demo)
@jywarren
Copy link
Member Author

jywarren commented Feb 2, 2018

GitMate.io thinks the contributor most likely able to help you is @ccpandhare.

@ccpandhare
Copy link
Collaborator

These are pretty good resources!

@jywarren
Copy link
Member Author

Great source of FTOs! @tech4GT @Mridul97

@tech4GT
Copy link
Member

tech4GT commented Sep 29, 2018

@jywarren Thanks!

@Mridul97
Copy link

Thank you! 😄

@aashna27
Copy link

aashna27 commented Jan 4, 2019

@jywarren are we ready to have a masking module ? if so I would like to work on it . Also if you could elaborate on " Luminosity" I would like to look into it.

@jywarren
Copy link
Member Author

jywarren commented Jan 4, 2019 via email

@harshkhandeparkar
Copy link
Member

Flood fill has its own issue.

@niravasher niravasher mentioned this issue Apr 3, 2019
@rishabhshuklax
Copy link
Member

rishabhshuklax commented Jan 18, 2020

Mask Module

Screenshot from 2020-01-18 18-28-35

@jywarren I was trying to make the mask module and came up with this by applying Alpha Masking.
Could you brief a little more about this, Or does this looks good?
Thanks!!

@jywarren
Copy link
Member Author

Oh, this looks really nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants