All Projects → Ovilia → Sunglass

Ovilia / Sunglass

Convert image into a given color palette

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Sunglass

Computervision Recipes
Best Practices, code samples, and documentation for Computer Vision.
Stars: ✭ 8,214 (+15111.11%)
Mutual labels:  image-processing
Op rbf
Optimized Recursive Bilateral Filter
Stars: ✭ 47 (-12.96%)
Mutual labels:  image-processing
Gait Recognition
Distance Recognition of a Human Being with Deep CNN's
Stars: ✭ 51 (-5.56%)
Mutual labels:  image-processing
React Native Heic Converter
Convert your HEIC files with React Native
Stars: ✭ 43 (-20.37%)
Mutual labels:  image-processing
Java Thumbnailer
An extensible java library to create thumbnails of different file types (image, text)
Stars: ✭ 45 (-16.67%)
Mutual labels:  image-processing
Facer
Simple (🤞) face averaging (🙂) in Python (🐍)
Stars: ✭ 49 (-9.26%)
Mutual labels:  image-processing
Rapiddraw
A simple artificial intelligence experiment to find out if mobile neural networks can recognize human-made doodles
Stars: ✭ 39 (-27.78%)
Mutual labels:  image-processing
Pixelizator
Swift/Python image pixelizer 🖼️.
Stars: ✭ 53 (-1.85%)
Mutual labels:  image-processing
Inpainting
Criminisi et al's region inpainting algorithm in C++
Stars: ✭ 46 (-14.81%)
Mutual labels:  image-processing
Pytorch Ssim
pytorch structural similarity (SSIM) loss
Stars: ✭ 1,058 (+1859.26%)
Mutual labels:  image-processing
Dagbot
The official Repository for dagbot, the self proclaimmed n1 meme bot.
Stars: ✭ 40 (-25.93%)
Mutual labels:  image-processing
Nimp
Nimp - Node-based image manipulation program.
Stars: ✭ 45 (-16.67%)
Mutual labels:  image-processing
Image Denoising Benchmark
Benchmarking Denoising Algorithms with Real Photographs
Stars: ✭ 49 (-9.26%)
Mutual labels:  image-processing
Tensorflow Lite Rest Server
Expose tensorflow-lite models via a rest API
Stars: ✭ 43 (-20.37%)
Mutual labels:  image-processing
Opencv Face Filters
Snapchat-like Face Filters in OpenCV
Stars: ✭ 51 (-5.56%)
Mutual labels:  image-processing
Grabcutweb
Full web grabcut example using opencvjs
Stars: ✭ 40 (-25.93%)
Mutual labels:  image-processing
Seeds Revised
Implementation of the superpixel algorithm called SEEDS [1].
Stars: ✭ 48 (-11.11%)
Mutual labels:  image-processing
Fast Near Duplicate Image Search
Fast Near-Duplicate Image Search and Delete using pHash, t-SNE and KDTree.
Stars: ✭ 54 (+0%)
Mutual labels:  image-processing
Images Web Crawler
This package is a complete tool for creating a large dataset of images (specially designed -but not only- for machine learning enthusiasts). It can crawl the web, download images, rename / resize / covert the images and merge folders..
Stars: ✭ 51 (-5.56%)
Mutual labels:  image-processing
Cropper
⚠️ [Deprecated] No longer maintained, please use https://github.com/fengyuanchen/jquery-cropper
Stars: ✭ 7,825 (+14390.74%)
Mutual labels:  image-processing

sunglass 😎

Convert image into a given color palette.

Input Image Input Palette Output Image

This project was originally created for my personal website;

API

/**
 * Convert image into a given color palette.
 *
 * @param {Image | HTMLCanvasElement} image      input image
 * @param {string[]}                  [palette=['#fff','#999','#555','#222']]
 *                                        colors of output image
 * @param {string}                    [colorSpace='rgb'] color space
 * @return {HTMLCanvasElement}        output image on canvas
 */
sunglass(image[, palette[, colorSpace]])

Example

import sunglass from 'sunglass';

const img = new Image();
img.onload = () => {
    const palette = ['#d1c4af','#a39990','#363132'];
    const outputCanvas = sunglass(img, palette);
    console.log(outputCanvas.toDataURL()); // base64 string of output image
};
img.src = '...';
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].