npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

pixpipe

v0.2.0

Published

A image processing pipeline in pure Javascript for browsers and Node

Downloads

6

Readme

Pixpipe.js

GitHub last commit Gitter npm

Pixpipe.js is an attempt of building an image processing pipeline entirely in native Javascript for browsers. Its architecture was somewhat inspired by ITK, making a clear distinction between objects that contains data (inherit from PixpipeContainer) from object that processes data (inherit from Filter).

The concept of pipeline implies that the output of a Filter can be used as an input for the next one, like in ITK. In Pixpipe.js, this is done by using the Filter's methods addInput() and getOuput(). Some Filter may have several input or output of different kinds.

Install

npm install --save pixpipe

Usage in prod

The bundle in dist/pixpipe.js is a umd bundle, meaning it's ugly but it's compatible everywhere.

In HTML file:

<script src="pixpipe/dist/pixpipe.js"></script>
<!-- or alternatively -->
<script src="pixpipe/dist/pixpipe.min.js"></script>

In Node:

const pixpipe = require("pixpipe");

In ES6 module:

import pixpipe from 'pixpipe';

Or, if you don't want to export the whole bundle, you can select sub-parts of Pixpipe:

import { UrlToArrayBufferReader, FileToArrayBufferReader, Image2D } from 'pixpipe/dist/pixpipe.esmodule.js';

Motivations

To make image processing:

  • accessible, using just a web browser and a textpad
  • easy to use in a sense that "all filters work the same way".
  • with no other dependency than pixpipe.js
  • with no required compilation or system fuss
  • modular
  • generic enough to use different kind of data/datasource
  • easy to contribute
  • well documented for both users and contributors.

Presentation

Here are some slides to present Pixpipejs. Maybe an easier introduction.

Cookbook

The best way to learn how to uses Pixpipe is by going through the cookbook. You'll find in-depth descriptions of the core components, examples and how-to's.

Documentation

This documentation is autogenerated from source comments and thus is pretty complete. Interested in how to generate your own? go there.

Compatible formats

Here is the list of compatible formats:

  • jpeg (to Image2D)
  • png (to Image2D)
  • tiff (to Image2D)
  • NIfTI (to Image3D / MniVolume)
  • Minc2 (to Image3D / MniVolume)
  • MGH/MHZ (to Image3D / MniVolume)
  • EDF - European Data Format (to Signal1D)
  • MOD EEG (to Signal1D)
  • PixBin (generic Pixpipe format for pretty much everything)

Sample data

HERE is the repo where some sample data are stored (mainly to avoid this repos to be too fat).

The PixBin format

This is the binary file format used to store data from a Pixpipe pipeline. Thanks to it's proximity to Pixpipe structures a PixBin file can be opened and create the Pixpipe object instances as you left them.

The codec for PixBin is part of Pixpipejs but is also available as a separate package here. A in-depth description of the file format is also available here.

Contribution

Pixpipejs is open to contribution via fork + pull requests.
In addition, if you have an idea of a feature you would like to see in Pixpipejs, you can mention if in the Wiki and we'll see what we can do.

License

MIT - See LICENSE file.