Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/ndcrop
Crops n-dimensional images in place
https://github.com/mikolalysenko/ndcrop
Last synced: 7 days ago
JSON representation
Crops n-dimensional images in place
- Host: GitHub
- URL: https://github.com/mikolalysenko/ndcrop
- Owner: mikolalysenko
- Created: 2013-02-17T16:51:42.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-02-17T16:51:56.000Z (almost 12 years ago)
- Last Synced: 2024-12-16T22:35:17.738Z (10 days ago)
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ndcrop
======
Crops an n-dimensional image in place.Installation
============
Via npm:npm install ndcrop
Example
=======
In node, evaluating:require("ndcrop")([2,2], [[1, 0, 0, 0],
[0, 0, 0, 0]]);Prints:
[ [ 1, 0 ],
[ 0, 0 ] ]`require("ndcrop")(dims, image)`
--------------------------------
Crops the image to `dims` in place. This is usually faster than resizing the image, which will allocate a new copy.* `dims` the dimensions of the new image, must be less than or equal to original image dimensions
* `image` the image to resizeReturns a resized image
Credits
=======
(c) 2013 Mikola Lysenko. BSD