Skip to content
Merged
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
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

C++ sources in `src/`:

- `thinr_common.h` — shared inline helpers (`crossing_number`, `neighbour_count`, `is_border_4`).
- `thinr_common.h` — shared inline helpers (`crossing_number`, `neighbour_count`).
- `zhang_suen.cpp` — Zhang & Suen (1984).
- `guo_hall.cpp` — Guo & Hall (1989).
- `lee.cpp` — Lee, Kashyap & Chu (1994), 2-D adaptation.
Expand Down
6 changes: 6 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

* Development version bump following the 0.3.0 CRAN release.

* Internal, with no change to any output: the unused `thinr::is_border_4()`
helper was removed from `src/thinr_common.h`. Its last callers were the
stentiford and pavlidis kernels, dropped 2026-05-20; nothing has referenced
it since. The header now declares only the two helpers that are actually
used.

* Internal, with no change to any output: the Zhang-Suen crossing number
`A(p)` and neighbour count `B(p)` were re-implemented inline in
`src/zhang_suen.cpp`, `src/lee.cpp`, and `src/holt.cpp` instead of calling
Expand Down
6 changes: 0 additions & 6 deletions src/thinr_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@ inline int neighbour_count(int p2, int p3, int p4, int p5,
return p2 + p3 + p4 + p5 + p6 + p7 + p8 + p9;
}

// 4-connected background test: TRUE iff at least one 4-connected
// neighbour is background. Used to identify border pixels.
inline bool is_border_4(int p2, int p4, int p6, int p8) {
return (p2 == 0) || (p4 == 0) || (p6 == 0) || (p8 == 0);
}

} // namespace thinr

#endif // THINR_COMMON_H
Loading