62379dd5b9
* Implement Sobel and Scharr operators This commit adds Sobel and Scharr operators with support for 0th and 1st degrees with other degrees planned for later * Migrate and fix Harris example Generate Harris entries now uses signed image view. The Harris corner detector example now uses the Scharr filter generator and convolve_2d to reduce amount of code needed. * Fix and migrate Hessian example The Hessian example now uses signed image views and uses newly added kernel generators to compute gradients * Fix Harris and Hessian tests The tests broke due to migration to signed views in algorithms, but tests were not adjusted * Fix Jamfile for example/sobel_scharr.cpp * Cosmetic changes * Commented out fail tests * Fixed pixel16 used in image16s In Harris and Hessian tests, unsigned pixel values was used to construct signed image, which was causing appveyor to error out. * Reenable failing targets * Unify kernel generator interface This commit makes all kernel generator functions to return kernel_2d and adapts dependant threshold function to use the new interface * Migrate Hessian and Harris tests Migrate Hessian and Harris tests to new interface for kernel generators * Migrate Harris and Hessian examples Harris and Hessian examples now use new interface for kernel generation * Migrate simple_kernels tests simple_kernels are now using kernel_2d interface * Add missing return Normalized mean generation had missing return at the end of the function * Adapt code to namespace move This commit reacts to kernel_2d, convolve_2d being moved to namespace detail
41 lines
806 B
Plaintext
41 lines
806 B
Plaintext
# Boost.GIL (Generic Image Library) - examples
|
|
#
|
|
# Copyright (c) 2018 Mateusz Loskot <mateusz@loskot.net>
|
|
#
|
|
# Use, modification and distribution is subject to the Boost Software License,
|
|
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
|
# http://www.boost.org/LICENSE_1_0.txt)
|
|
|
|
import ac ;
|
|
import regex ;
|
|
import testing ;
|
|
|
|
using libjpeg : : : : true ; # work around bug on master
|
|
|
|
project
|
|
: # requirements
|
|
;
|
|
|
|
# TODO: Add missing examples
|
|
|
|
local sources =
|
|
affine.cpp
|
|
dynamic_image.cpp
|
|
histogram.cpp
|
|
harris.cpp
|
|
sobel_scharr.cpp
|
|
;
|
|
|
|
local targets ;
|
|
|
|
for local s in $(sources)
|
|
{
|
|
targets +=
|
|
[ compile $(s) :
|
|
[ ac.check-library /libjpeg//libjpeg : <library>/libjpeg//libjpeg : <build>no ]
|
|
]
|
|
;
|
|
}
|
|
|
|
alias examples : $(targets) ;
|