Skip to content

Commit

Permalink
* Add presets for flandmark 1.07 (pull #9)
Browse files Browse the repository at this point in the history
  • Loading branch information
saudet committed Jul 21, 2014
1 parent 3caa4e8 commit 7c66a8a
Show file tree
Hide file tree
Showing 12 changed files with 882 additions and 93 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Upgrade presets for FFmpeg 2.3, FlyCapture 2.6.3.4 ([pull #6](https://github.com/bytedeco/javacpp-presets/pull/6), [issue #8](https://github.com/bytedeco/javacpp-presets/issues/8)), libfreenect 0.5
* Make the `cppbuild.sh` scripts install native libraries inside the `cppbuild` subdirectories, instead of on the system
* Include new `platform.dependency` and `platform.dependencies` properties to let users depend easily on the artifacts that contain native libraries
* Add presets for FFTW 3.3.4, GSL 1.16, LLVM 3.4.2, Leptonica 1.71, Tesseract 3.03-rc1
* Add presets for flandmark 1.07 ([pull #9](https://github.com/bytedeco/javacpp-presets/pull/9)), FFTW 3.3.4, GSL 1.16, LLVM 3.4.2, Leptonica 1.71, Tesseract 3.03-rc1
* Fix missing `static` keyword on methods annotated with an `@Adapter` ([issue #3](https://github.com/bytedeco/javacpp-presets/issues/3))
* Turn `Mat.createFrom()` into a static factory method, and make `Mat.copyFrom()` call `Mat.create()` as appropriate ([issue #1](https://github.com/bytedeco/javacpp-presets/issues/1))
* Add missing `native_camera` modules of `opencv_highgui` for Android
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ Each child module in turn relies on its corresponding native libraries being alr
* libfreenect 0.5 https://github.com/OpenKinect/libfreenect
* videoInput 0.200 https://github.com/ofTheo/videoInput/tree/update2013
* ARToolKitPlus 2.3.0 https://launchpad.net/artoolkitplus
* flandmark 1.07 http://cmp.felk.cvut.cz/~uricamic/flandmark/#download
* FFTW 3.3.4 http://www.fftw.org/download.html
* GSL 1.16 http://www.gnu.org/software/gsl/
* GSL 1.16 http://www.gnu.org/software/gsl/#downloading
* LLVM 3.4.2 http://llvm.org/releases/download.html
* Leptonica 1.71 http://www.leptonica.org/download.html
* Tesseract 3.03-rc1 https://code.google.com/p/tesseract-ocr/
Expand Down
2 changes: 1 addition & 1 deletion cppbuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function download {
}

if [[ -z ${PROJECTS:-} ]]; then
PROJECTS=(opencv ffmpeg flycapture libdc1394 libfreenect videoinput artoolkitplus fftw gsl llvm leptonica tesseract)
PROJECTS=(opencv ffmpeg flycapture libdc1394 libfreenect videoinput artoolkitplus flandmark fftw gsl llvm leptonica tesseract)
fi

for PROJECT in ${PROJECTS[@]}; do
Expand Down
674 changes: 674 additions & 0 deletions flandmark/LICENSE

Large diffs are not rendered by default.

26 changes: 26 additions & 0 deletions flandmark/android-arm.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# CMake toolchain to build flandmark for Android 2.2. Sample usage:
#
# ANDROID_BIN=`pwd`/../android-ndk/toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi \
# ANDROID_CPP=`pwd`/../android-ndk/sources/cxx-stl/gnu-libstdc++/4.6/ \
# ANDROID_ROOT=`pwd`/../android-ndk/platforms/android-9/arch-arm/ \
# cmake -DCMAKE_TOOLCHAIN_FILE=android-arm.cmake -DCMAKE_INSTALL_PREFIX=..
#
# If you really need to use flandmark on a CPU with no FPU, replace "libs/armeabi-v7a" by "libs/armeabi" and
# "-march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16" with "-march=armv5te -mtune=xscale -msoft-float"

set(CMAKE_SYSTEM_NAME UnixPaths)
set(CMAKE_SYSTEM_PROCESSOR arm)
set(ANDROID TRUE)

set(CMAKE_C_COMPILER "$ENV{ANDROID_BIN}-gcc")
set(CMAKE_CXX_COMPILER "$ENV{ANDROID_BIN}-g++")

set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_ROOT}/usr/lib/ -lgcc -ldl -lz -lm -lc")
set(CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_CPP}/libs/armeabi-v7a/ -L$ENV{ANDROID_ROOT}/usr/lib/ -lgnustl_static -lgcc -ldl -lz -lm -lc")

set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_ROOT}/usr/lib/ -lgcc -ldl -lz -lm -lc")
set(CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_CPP}/libs/armeabi-v7a/ -L$ENV{ANDROID_ROOT}/usr/lib/ -lgnustl_static -lgcc -ldl -lz -lm -lc")

add_definitions("-DANDROID -fPIC -ffunction-sections -funwind-tables -fstack-protector -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300")

include_directories("$ENV{ANDROID_CPP}/include/" "$ENV{ANDROID_CPP}/libs/armeabi-v7a/include/" "$ENV{ANDROID_ROOT}/usr/include/")
23 changes: 23 additions & 0 deletions flandmark/android-x86.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# CMake toolchain to build flandmark for Android 2.2. Sample usage:
#
# ANDROID_BIN=`pwd`/../android-ndk/toolchains/x86-4.6/prebuilt/linux-x86_64/bin/i686-linux-android \
# ANDROID_CPP=`pwd`/../android-ndk/sources/cxx-stl/gnu-libstdc++/4.6/ \
# ANDROID_ROOT=`pwd`/../android-ndk/platforms/android-9/arch-x86/ \
# cmake -DCMAKE_TOOLCHAIN_FILE=android-x86.cmake -DCMAKE_INSTALL_PREFIX=..

set(CMAKE_SYSTEM_NAME UnixPaths)
set(CMAKE_SYSTEM_PROCESSOR atom)
set(ANDROID TRUE)

set(CMAKE_C_COMPILER "$ENV{ANDROID_BIN}-gcc")
set(CMAKE_CXX_COMPILER "$ENV{ANDROID_BIN}-g++")

set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_ROOT}/usr/lib/ -lgcc -ldl -lz -lm -lc")
set(CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_CPP}/libs/x86/ -L$ENV{ANDROID_ROOT}/usr/lib/ -lgnustl_static -lgcc -ldl -lz -lm -lc")

set(CMAKE_C_CREATE_SHARED_LIBRARY "<CMAKE_C_COMPILER> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_ROOT}/usr/lib/ -lgcc -ldl -lz -lm -lc")
set(CMAKE_CXX_CREATE_SHARED_LIBRARY "<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> -nostdlib <LINK_LIBRARIES> -L$ENV{ANDROID_CPP}/libs/x86/ -L$ENV{ANDROID_ROOT}/usr/lib/ -lgnustl_static -lgcc -ldl -lz -lm -lc")

add_definitions("-DANDROID -fPIC -ffunction-sections -funwind-tables -fstack-protector -mtune=atom -mssse3 -mfpmath=sse -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300")

include_directories("$ENV{ANDROID_CPP}/include/" "$ENV{ANDROID_CPP}/libs/x86/include/" "$ENV{ANDROID_ROOT}/usr/include/")
74 changes: 55 additions & 19 deletions flandmark/cppbuild.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,66 @@
#!/bin/sh
if [[ -z "$PLATFORM" ]]; then
echo "This file is meant to be included by the parent cppbuild.sh script"
exit 1
fi

# FLANDMARK_VERSION=a0981a3b09cc5534255dc1dcdae2179097231bdd
# download https://github.com/uricamic/flandmark/archive/$FLANDMARK_VERSION.zip flandmark.zip

# unzip -o flandmark.zip -d flandmark/sources
FLANDMARK_VERSION=master
download https://github.com/uricamic/flandmark/archive/$FLANDMARK_VERSION.zip flandmark-$FLANDMARK_VERSION.zip

mkdir -p $PLATFORM
cd $PLATFORM
INSTALL_PATH=`pwd`
mkdir -p include lib bin
unzip -o ../flandmark-$FLANDMARK_VERSION.zip
cd flandmark-$FLANDMARK_VERSION

mkdir -p include
cp -r ../flandmark/sources/libflandmark/flandmark_detector.h include
cp -r ../flandmark/sources/libflandmark/msvc-compat.h include
cp -r ../../../opencv/cppbuild/$PLATFORM/include/opencv/cv.h include
cp -r ../../../opencv/cppbuild/$PLATFORM/include/opencv/cvaux.h include
cp -r ../../../opencv/cppbuild/$PLATFORM/include/opencv2/ include

mkdir -p bin
cp -r ../flandmark/build/x64/libflandmark/RelWithDebInfo/flandmark_shared.dll bin
cp -r ../../../opencv/cppbuild/$PLATFORM/bin/* bin
OPENCV_PATH=$INSTALL_PATH/../../../opencv/cppbuild/$PLATFORM/

mkdir -p lib
cp -r ../flandmark/build/x64/libflandmark/RelWithDebInfo/flandmark_static.lib lib
cp -r ../../../opencv/cppbuild/$PLATFORM/lib/* lib
case $PLATFORM in
android-arm)
cmake -DCMAKE_TOOLCHAIN_FILE=$INSTALL_PATH/../../android-arm.cmake -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/sdk/native/jni/ -DANDROID_NDK_ABI_NAME=armeabi_v7a
make -j4 flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.a ../lib
;;
android-x86)
cmake -DCMAKE_TOOLCHAIN_FILE=$INSTALL_PATH/../../android-x86.cmake -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/sdk/native/jni/ -DANDROID_NDK_ABI_NAME=x86
make -j4 flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.a ../lib
;;
linux-x86)
CC="gcc -m32" CXX="g++ -m32" cmake -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/share/OpenCV/
make -j4 flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.a ../lib
;;
linux-x86_64)
CC="gcc -m64" CXX="g++ -m64" cmake -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/share/OpenCV/
make -j4 flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.a ../lib
;;
macosx-x86_64)
cmake -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/share/OpenCV/
make -j4 flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.a ../lib
;;
windows-x86)
cmake -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/opencv/build/
nmake flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.lib ../lib
;;
windows-x86_64)
cmake -DCMAKE_BUILD_TYPE=Release -DOpenCV_DIR=$OPENCV_PATH/opencv/build/
nmake flandmark_static
cp libflandmark/*.h ../include
cp libflandmark/*.lib ../lib
;;
*)
echo "Error: Platform \"$PLATFORM\" is not supported"
;;
esac

cd ..
cd ../..
86 changes: 38 additions & 48 deletions flandmark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,20 @@

<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>flandmark</artifactId>
<version>1.7-${project.parent.version}</version>
<version>1.07-${project.parent.version}</version>
<packaging>jar</packaging>
<name>JavaCPP Presets for flandmark</name>

<properties>
<!-- Skip on non-Windows system (see profile below) -->
<generate-sources.skip>true</generate-sources.skip>
<process-classes.skip>true</process-classes.skip>
</properties>

<dependencies>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-${project.parent.version}</version>
</dependency>
<dependency>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-0.8-2-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-0.8-2-SNAPSHOT</version>
<classifier>${platform}</classifier>
</dependency>
</dependencies>

<build>
Expand All @@ -46,26 +34,44 @@
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.bytedeco</groupId>
<artifactId>javacpp</artifactId>
<configuration>
<environmentVariables>
<!-- Hack required for Windows SDK v7.1 -->
<CL>&quot;/I${env.SDKDIR}/Include/&quot;</CL>
</environmentVariables>
<classPaths>
<classPath>${basedir}/../opencv/target/classes/</classPath>
<classPath>${project.build.outputDirectory}</classPath>
</classPaths>
<includePaths>
<includePath>${basedir}/../opencv/target/classes/org/bytedeco/javacpp/</includePath>
<includePath>${basedir}/../opencv/cppbuild/${platform}/include/opencv/</includePath>
<includePath>${basedir}/../opencv/cppbuild/${platform}/include/</includePath>
<includePath>${basedir}/cppbuild/${platform}/include/</includePath>
</includePaths>
<linkPaths>
<linkPath>${basedir}/../opencv/cppbuild/${platform}/lib/</linkPath>
<linkPath>${basedir}/cppbuild/${platform}/lib/</linkPath>
</linkPaths>
<preloadPaths>
<preloadPath>${basedir}/../opencv/cppbuild/${platform}/bin/</preloadPath>
<preloadPath>${basedir}/cppbuild/${platform}/bin/</preloadPath>
</preloadPaths>
</configuration>
<dependencies>
<dependency>
<groupId>org.bytedeco.javacpp-presets</groupId>
<artifactId>opencv</artifactId>
<version>2.4.9-0.8-2-SNAPSHOT</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>generate-sources</id>
<configuration>
<classOrPackageName>org.bytedeco.javacpp.presets.flandmark</classOrPackageName>
</configuration>
</execution>
<execution>
<id>process-classes</id>
<configuration>
<classOrPackageName>org.bytedeco.javacpp.flandmark</classOrPackageName>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
Expand All @@ -78,24 +84,8 @@
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<configuration>
<encoding>ISO-8859-1</encoding>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<profile>
<id>windows</id>
<activation>
<os><family>windows</family></os>
</activation>
<properties>
<generate-sources.skip>false</generate-sources.skip>
<process-classes.skip>false</process-classes.skip>
</properties>
</profile>
</profiles>

</project>
48 changes: 46 additions & 2 deletions flandmark/src/main/java/org/bytedeco/javacpp/flandmark.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@

package org.bytedeco.javacpp;

import static org.bytedeco.javacpp.opencv_core.*;
import java.nio.*;
import org.bytedeco.javacpp.*;
import org.bytedeco.javacpp.annotation.*;

import static org.bytedeco.javacpp.opencv_core.*;
import static org.bytedeco.javacpp.opencv_imgproc.*;

public class flandmark extends org.bytedeco.javacpp.presets.flandmark {
static { Loader.load(); }

// Parsed from <flandmark_detector.h>
// Parsed from flandmark_detector.h

/*
* This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -308,4 +310,46 @@ public static class FLANDMARK_PSI_SPARSE extends Pointer {
// #endif // __LIBFLD_DETECTOR_H_


// Parsed from liblbp.h

/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* Written (W) 2012 Vojtech Franc, Michal Uricar
* Copyright (C) 2012 Vojtech Franc, Michal Uricar
*/

// #ifndef _liblbp_h
// #define _liblbp_h

// #include "msvc-compat.h"

// #define LIBLBP_INDEX(ROW,COL,NUM_ROWS) ((COL)*(NUM_ROWS)+(ROW))
// #define LIBLBP_MIN(A,B) ((A) > (B) ? (B) : (A))

//typedef long unsigned int t_index;

public static native void liblbp_pyr_features_sparse(@Cast("t_index*") IntPointer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntPointer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols );
public static native void liblbp_pyr_features_sparse(@Cast("t_index*") IntBuffer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntBuffer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols );
public static native void liblbp_pyr_features_sparse(@Cast("t_index*") int[] vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") int[] img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols );
public static native void liblbp_pyr_features(@Cast("char*") BytePointer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntPointer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols );
public static native void liblbp_pyr_features(@Cast("char*") ByteBuffer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntBuffer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols );
public static native void liblbp_pyr_features(@Cast("char*") byte[] vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") int[] img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols );
public static native double liblbp_pyr_dotprod(DoublePointer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntPointer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native double liblbp_pyr_dotprod(DoubleBuffer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntBuffer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native double liblbp_pyr_dotprod(double[] vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") int[] img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native void liblbp_pyr_addvec(LongPointer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntPointer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native void liblbp_pyr_addvec(LongBuffer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntBuffer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native void liblbp_pyr_addvec(long[] vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") int[] img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native void liblbp_pyr_subvec(LongPointer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntPointer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native void liblbp_pyr_subvec(LongBuffer vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") IntBuffer img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native void liblbp_pyr_subvec(long[] vec, @Cast("uint32_t") int vec_nDim, @Cast("uint32_t*") int[] img, @Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols);
public static native @Cast("uint32_t") int liblbp_pyr_get_dim(@Cast("uint16_t") short img_nRows, @Cast("uint16_t") short img_nCols, @Cast("uint16_t") short nPyramids);

// #endif


}
Loading

0 comments on commit 7c66a8a

Please sign in to comment.