ndarray-homography

WebJar for ndarray-homography

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

ndarray-homography
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

ndarray-homography
WebJar for ndarray-homography
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/scijs/ndarray-homography

Download ndarray-homography

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/ndarray-homography/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>ndarray-homography</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/ndarray-homography/
implementation 'org.webjars.npm:ndarray-homography:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/ndarray-homography/
implementation ("org.webjars.npm:ndarray-homography:1.0.0")
'org.webjars.npm:ndarray-homography:jar:1.0.0'
<dependency org="org.webjars.npm" name="ndarray-homography" rev="1.0.0">
  <artifact name="ndarray-homography" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='ndarray-homography', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "ndarray-homography" % "1.0.0"
[org.webjars.npm/ndarray-homography "1.0.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.npm : ndarray-warp jar [1.0.0,2)
org.webjars.npm : gl-matrix-invert jar [1.0.0,2)

Project Modules

There are no modules declared in this project.

ndarray-homography

Applies a homography to an ndarray.

Example

var imshow = require('ndarray-imshow')
var baboon = require('baboon-image')
var luminance = require('luminance')
var applyHomography = require('ndarray-homography')
var scratch = require('ndarray-scratch')

var baboonGrey = luminance(
  scratch.zeros([baboon.shape[0], baboon.shape[1]]),
  baboon)

imshow(applyHomography(
  scratch.zeros(baboonGrey.shape),
  baboonGrey,
  [1, 0, 0,
   0, 1, 0,
   0, 0, 1]
))

Install

npm install ndarray-homography

API

require('ndarray-homography')(dest, src, M)

Applies a homography to an ndarray.

  • dest is a destination image, which has the same size as the input image
  • src is the input image
  • M is a homography encoded as a flattened matrix in column major order (consistent with OpenGL's format)

Returns dest

Credits

(c) 2014 Mikola Lysenko. MIT License

org.webjars.npm

Versions

Version
1.0.0