Skip to content

colorpalette is a tool to process and create palettes of unique colors from images

Notifications You must be signed in to change notification settings

mikaelsundell/colorpalette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Readme for colorpalette

License

Introduction

Colorpalette is a tool to process and create palettes of unique colors from images

Sample image or figure.

Building

The colorpalette app can be built both from commandline or using optional Xcode -GXcode.

mkdir build
cd build
cmake .. -DCMAKE_MODULE_PATH=<path> -DCMAKE_INSTALL_PREFIX=<path> -DCMAKE_PREFIX_PATH=<path> -GXcode
cmake --build . --config Release -j 8

Example using 3rdparty on arm64

mkdir build
cd build
cmake ..
cmake .. -DCMAKE_MODULE_PATH=<path>/3rdparty/build/macosx/arm64.debug -DCMAKE_INSTALL_PREFIX=<path>/3rdparty/build/macosx/arm64.debug -DBUILD_SHARED_LIBS=TRUE -GXcode

Usage

Print colorpalette help message with flag --help.

Colorpalette -- a tool to process and create palettes of unique colors from images

Usage: colorpalette [options] filename...

General flags:
    --help                           Print help message
    -v                               Verbose status messages
    --colors COLORS                  Number of unique colors
Input flags:
    --inputfilename INFILENAME       Input filename of image
Output flags:
    --outputfilename OUTFILENAME     Output filename of palette image
    --posterfilename POSTERFILENAME  Output filename of poster image

Generate a color palette from an image

./colorpalette
-v
--inputfilename /Volumes/Build/github/image.jpg
--outputfilename /Volumes/Build/github/imagepalette.jpg

Packaging

The macdeploy.sh script will deploy mac bundle to dmg including dependencies.

./macdeploy.sh -e <path>/colorpalette -d <path> -p <path>

Dependencies

Project Description
OpenImageIO OpenImageIO project @ Github
OpenCV OpenCV project @ Github
3rdparty 3rdparty project containing all dependencies @ Github

Project

Contributors

  • ChatGPT :-)

About

colorpalette is a tool to process and create palettes of unique colors from images

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published