-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Raphael Kim edited this page Jul 14, 2023
·
5 revisions
- fl_imgtk is a shorten word for "FLTK image toolkit".
- You can change many things to do on Fl_RGB_Image.
- Currently supports these:
- Flipping images
- Rotating images in any degree with minimal pixel modulating.
- Rescale(or resize) in many filters: nearest, bicubic, lanczos, B-Splie.
- Tone mapping (HDRi) for Drago and Reinhard
- Kernel matrix filters
- Contrast, Gamma, Bright control.
- Draws Fl_Widget to Fl_RGB_Image easily.
- Make blurred Fl_Widget image to Fl_RGB_Image as you can use in background blurred image for beautiful GUI.
- My C++ code designed to get maximize optimized by compiler level with many options.
- But without compiler power, ther's no fastest way now.
- Recommend to use OpenMP (is availed) and Fast-Math with AVX architecture( Intel and AMD x86 base )
- MIT License, yeah !
- Some algorithms from FreeImage3 library
- Desinged for FLTK, and it follows FLTK License.
- FLTK has indexed color within 255 from 0, like FL_BLACK, FL_WHITE or FL_xx .
- fl_imgtk don't convert colors !
- fl_imgtk only has this byte orders to expression color space : 0xRRGGBBAA.
- If you want to convert color space from index, use
Fl::get_color();
, and refer tofl_cmap.h
. - When you got 24bit color from
Fl::get_color()
, then need to do thisuint32_t flimgtk_color = Fl::get_color( FL_RED ) | 0x000000FF;
- Always fltk returns non-alpha mask, but fl_imgtk matter alpha depth, 0x00 to 0xFF.
- It should be possible to build with modified Makefile from Makefile.gcc.
- Make sure already built fltk-1.3.4-2-ts for your Rasberry Pi3 in your board.
- Copy Makefile.gcc to Makefile, then open Makefile with vim.
- Just remove -mavx in line of "CPUARCHOPT =" ( line 41 ).
- Write file and exit with ( wq command ) in vim.
- Just run a "make" in your shell.
"fl_imgtk" copyrighted by Raphael Kim, (C)2017 ... 2023