Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/c-cpp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: apt update
run: sudo apt-get update
- name: apt
run: sudo apt-get install g++ cmake libopencv-dev libwxgtk3.0-dev libboost-all-dev clang-format colordiff lcov
run: sudo apt-get install g++ cmake libopencv-dev libwxgtk3.2-dev libboost-all-dev clang-format colordiff lcov
- name: lint
run: bash linter.sh
- name: build
Expand Down
2 changes: 1 addition & 1 deletion src/CLD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ void CLD::gradientDoG(const cv::Mat &src, cv::Mat &dst, const double rho, const

const float value = src.at<float>((int)round(row), (int)round(col));

const int gau_idx = abs(step);
const int gau_idx = abs(step);
// The sigma_s support is wider than sigma_c's; beyond gau_c's
// support the center gaussian contributes nothing.
const double gau_c_weight = gau_idx < static_cast<int>(gau_c.size()) ? gau_c[gau_idx] : 0.0;
Expand Down
9 changes: 5 additions & 4 deletions test.sh
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
#!/bin/bash
set -e

rm -rf .coverage coverage.info

time ./build/cld --src ./data/fingerprint.jpg -o output.jpg --ETF_iter 3 --CLD_iter 8 --debug_img
echo '10459bb86077235db3f85fe64d25f2d8 output.jpg' | md5sum -c -
echo '3ea95ae0f6f92478af7fbf97e96b2763 anti-alias.jpg' | md5sum -c -
echo '1a68133901751c29efe4febec29d014e visualize-etf.jpg' | md5sum -c -
echo '365b29b4d15520b5c92eb78bc6c236b8 arrow-etf.jpg' | md5sum -c -
echo '92757f83506131ade0ac4e9c84f755f4 output.jpg' | md5sum -c -
echo '4a1cd86bd6a52f7abe6fa594ac5b5bc6 anti-alias.jpg' | md5sum -c -
echo 'a55c4e14b375e6e0222d123d2de4db21 visualize-etf.jpg' | md5sum -c -
echo '365b29b4d15520b5c92eb78bc6c236b8 arrow-etf.jpg' | md5sum -c -

if ! which lcov; then
exit 0
Expand Down
Loading