Alif Image processing library is available as a prebuilt library and as a CMSIS pack. Visit releases page.
Formats:
- ALPHA8
- ARGB8888
- ARGB4444
- ARGB1555
- RGBA8888
- RGBA4444
- RGBA5551
- BGR888
- RGB565
- YV12
- I420
- I422
- I444
- I400
- NV21
- NV12
- YUY2
- UYVY
Basic operations:
- Crop
- Flip
- Resize
- Rotate
Color correction:
- Color correction using a matrix
- White balance
- Lookup Table channel transformation
Bayer filters that can be decoded into any supported image format:
- RGGB
- GRBG
- BGGR
- GBRG
This CMSIS pack requires some packs to be installed and added to the project:
- Make sure CMSIS Toolbox installed. Check
packchk
is available (add CMSIS Toolbox utils path toPATH
if necessary):
packchk -V
- Set
CMSIS_PACK_ROOT
environment variables to cmsis-packs installation directory:
export CMSIS_PACK_ROOT=<your pack root>
- Run the generating script:
./gen_pack.sh
- Install generated CMSIS pack:
cpackget add ./output/AlifSemiconductor.AIPL.1.2.0.pack
ARM Compiler can be obtained from the ARM website.
Make sure that ARM Compiler's bin/
directory is added to PATH
before proceeding.
- Create and set up
aipl_config.h
and place it underconfig/
directory. If the file is not providedaipl_config_template.h
is copied. - Set up CMake:
cmake -B ./build/ -S . --toolchain ./cmake/toolchains/arm-armclang.cmake -DTARGET_CPU="cortex-m55" -DCMAKE_BUILD_TYPE=Release
- Build with CMake:
cmake --build build/
libaipl.a
can be found inside thebuild/
directory.