2
0
mirror of https://github.com/boostorg/gil.git synced 2026-01-23 17:42:30 +00:00
Commit Graph

1017 Commits

Author SHA1 Message Date
Peter Dimov
a328bef94d Add a Boost-friendly subproject case to CMakeLists (#614) 2021-10-30 23:14:15 +02:00
Samuel Debionne
c9b339e5d0 Merge pull request #617 from fmorgner/fix-c++20-ctor-incompatibility
Fix C++20 incompatibilities in IO extensions
2021-10-05 09:31:01 +02:00
Omar Emara
3279523252 Update pixel design documentation for MP11 changes (#626)
Update documentation after #274.
2021-10-04 19:03:14 +02:00
Felix Morgner
effd078b32 Fix C++20 incompatibilities in IO extensions 2021-06-11 11:22:50 +02:00
Prathamesh Tagore
7dd61209a8 Add remaining pieces of documentation in convolve.hpp (#611) 2021-05-30 20:21:46 +02:00
Mateusz Łoskot
d65cc58225 Update CONTRIBUTING.md 2021-05-23 13:24:38 +02:00
Mateusz Łoskot
4738a38295 test: Catch up IO with switch to variant2 migration (#607)
See discussion at
https://github.com/boostorg/gil/issues/453#issuecomment-833898207

Closes #606
2021-05-11 06:54:39 +02:00
Mateusz Łoskot
0a21d741ce test: Verify core IO headers are self-contained
Looks like skipped by mistake
2021-05-06 23:06:24 +02:00
André Schröder
bbdce36a1f docs: Correct typos in documentation (#592) 2021-04-03 00:46:05 +02:00
Mateusz Łoskot
2ad274cc81 ci: Remove cxxstd=14 from clang 3.5 job on GitHub Actions (#590)
Despite https://clang.llvm.org/cxx_status.html saying:

  Clang 3.4 and later implement all of the ISO C++ 2014 standard.

The clang 3.5 suffers from the bug in C++14 mode causing failure of
Boost.Filesystem build with:

  error: debug information for auto is not yet supported
  error: debug information for auto is not yet supported

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=800483
2021-04-02 20:35:17 +02:00
Mateusz Łoskot
cea6ef2752 ci: Fix availability of toolsets in updated Ubuntu images of GitHub Actions (#589)
The `compiler` property should trigger creation of `user-config.jam`
with the expected GCC 8 defined.

Something has changed on the GitHub Actions images or Boost.Build
and GCC 8 build job started failing:

   /home/runner/work/gil/boost-root/tools/build/src/tools/gcc.jam:203: in gcc.init from module gcc
   error: toolset gcc initialization:
   error: version '8' requested but 'g++-8' not found and version '7.5.0' of default 'g++' does not match

e.g. https://github.com/boostorg/gil/pull/562/checks?check_run_id=2246393722

The compilers should be `install`-ed explicitly to avoid such issues in future.
2021-04-02 15:53:03 +02:00
meshtag
bc3a6c0db9 Add rasterizer support for ellipse (#585)
* Added all standard morphological transformations
* Should handle grayscale dilation/erosion
* Added test cases and improved code structure
* Should handle multichannel images
2021-03-28 21:00:12 +02:00
Debabrata Mandal
6e91e4bf5c Update image url links for docs for histogram (#586) 2021-03-24 21:20:12 +01:00
Debabrata Mandal
dc9ba74cb3 Add docs for histogram (#503)
* Add docs for histogram

* Add docs and make changes:

 - Made changes suggested in first review

 - Add docs for relevant files

* Rename docs file and correct typos

* Change doc for cumulative histogram

* Add docs for histogram equalization

* Make changes suggested in review

* Add docs

* Remove docs for algorithms

* Move images to test_images

Co-authored-by: Mateusz Łoskot <mateusz@loskot.net>
2021-03-24 21:19:06 +01:00
Samuel Debionne
b8564e256c Fix any_image_view::const_t (#526)
Use inherited constructors in any_image as well
2021-03-18 10:53:53 +01:00
Gopi Krishna Menon
6da59cc335 docs: Updated GA workflow to publish with peaceiris/action-gh-pages (#574) 2021-03-10 09:16:10 +01:00
Gaurav kumar
392ac4996d Rotation of image by any arbitrary angle from its center (#565)
* basic rotation function for theta between +/- 180 deg
* added scaling matrix for same dimensions and added bound checks for theta
2021-03-09 10:26:21 +05:30
Mateusz Łoskot
745d033ef2 ci: Use GitHub Actions automatic GITHUB_TOKEN secret in docs workflow 2021-03-05 20:57:59 +01:00
Mateusz Łoskot
8bd2413127 ci: Remove GCC 5 on GitHub Actions and Azure Pipelines (#572)
Required by #526
See also https://github.com/boostorg/website/pull/562

Disable system.debug on AzP
2021-03-02 19:25:11 +01:00
Gopi Krishna Menon
0778069b8e Switch docs deployment from Travis CI to GitHub Actions (#563) 2021-03-02 11:02:07 +01:00
René Ferdinand Rivera Morell
f18445f90b Repoint B2 refs to new non-boostorg home. (#571) 2021-03-01 21:15:02 +01:00
René Ferdinand Rivera Morell
093117d565 Repoint B2 refs to new non-boostorg home. (#570)
Also, relabel Boost.Build to the current B2 name.
2021-03-01 21:13:36 +01:00
Avinal Kumar
ad007ab921 ci: Add Codecov badge and codecov.yml file (#567) 2021-03-01 11:46:27 +01:00
Pranam Lashkari
ec25950aff added missing copyright info (#569)
added missing copyright info
<boost/gil/image_processing/hessian.hpp>
2021-03-01 14:42:33 +05:30
Pranam Lashkari
33ab3cfc10 added missing header guards (#568)
added missing header guards in
<boost/gil/image_processing/diffusion.hpp>
2021-03-01 04:46:59 +05:30
Avinal Kumar
a82af6d25d ci: Add Codecov to GitHub Actions (#564)
Delete coverage.sh as unused
Closes #565
2021-02-28 09:54:56 +01:00
Mateusz Łoskot
a8cb364492 doc: Add Compiling section with C++ version and compilers support
Clarification suggested in https://github.com/boostorg/website/pull/562
following discussion about https://github.com/boostorg/gil/pull/526
2021-02-19 22:13:43 +01:00
meshtag
1e8526797e Added all standard morphological transformations (#541)
* Added all standard morphological transformations

* Improved comments and some other things

* Applied adviced changes

* Applied adviced changes

* Should handle grayscale dilation/erosion

* Checking

* Added test cases and improved code structure

* Added command line control

* Added command line control

* Rectified some things

* Rectified some more things

* Improved comments

* Improved comments

* Improved doxygen comments and added more test cases

* Improved compatibility for builds and rectifying whitespace use

* Minor improvement in comments

* Did clang formatting

* pushed enum class inside namespace 'detail' and some other things

* Should handle multichannel images

* Clang formatting attempt

* got rid of if/else comparators for target_element

* Adds morphology.hpp declaration in boost/gil.hpp

* Fix newline

* (std::max)(a, b) instead of std::max(a, b)

* Improved Formatting
2021-02-13 22:01:22 +06:00
Mateusz Łoskot
2676d31801 ci: Disable AppVeyor job using CMake to avoid timeouts 2021-02-09 23:49:02 +01:00
meshtag
c3b3d35aaa Fix sphinx installation link in docs readme (#560) 2021-02-05 12:27:11 +01:00
Siddharth
8337f47aeb Review and update includes in boost/gil.hpp (#559)
Fixes #555

Co-authored-by: Mateusz Łoskot <mateusz@loskot.net>
2021-02-04 18:01:32 +01:00
Mateusz Łoskot
f58f3a23a1 Disable warning: overlapping comparisons always evaluate to false [-Wtautological-overlap-compare] 2021-02-03 00:52:57 +01:00
Mateusz Łoskot
58804ecb24 Remove <cxxflags> and other cruft from Jamfile (#557)
The warnings, debug-symbols and other build properties
can (and should) be controlled via b2 command line options.

By the way, most of <cxxflags> uses in Jamfile-s are usually incorrect.
Instead, better option is to:
  use warnings=pedantic to control the warnings instead of cxxflags options directly
  either in requirements or in default-build,
  depending on whether you want to override it from the command line or not
2021-02-03 00:47:17 +01:00
Mateusz Łoskot
04daae7160 Fix warning: comparison of integer expressions of different signedness 2021-02-03 00:26:33 +01:00
Mateusz Łoskot
c7847f4d64 Fix warning: returning reference to local temporary object (#556)
Fixes #475
2021-02-02 23:50:58 +01:00
Mateusz Łoskot
d923a8f37e Declare laplacian_function::get_directed_offsets as inline
Fixes linker error due to multiple definitions.
The issue was missed during review of #500 as some public headers
are still missing from boost/gil.hpp.
2021-02-02 19:59:04 +01:00
Scramjet911
90f7952b05 Fixed most of warnings in examples and some in core library (#545) 2021-02-02 18:53:16 +01:00
theroyn
2e2764225f Support constructing a planar image from interleaved image (#552)
Fixes #478
2021-01-30 21:11:51 +01:00
Cypre55
422ca82fe5 Removed two instaces of boost.mpl (#551)
Removed "#include <boost/mp11/mpl.hpp>"
at include/boost/gil/detail/mp11/hpp
and test/core/pixel/test_fixture.hpp
2021-01-28 22:42:30 +01:00
Mateusz Łoskot
6007d74667 Fix some clang -Wunused-variable warnings 2021-01-28 22:43:31 +01:00
Mateusz Łoskot
063385398f Fix warnings about abs called without std qualification 2021-01-28 22:32:43 +01:00
Mateusz Łoskot
5d63cf6798 Fix more warnings in examples
Completing https://github.com/boostorg/gil/pull/545
2021-01-28 22:15:50 +01:00
Mateusz Łoskot
6f0a061363 docs: Clarify PR update procedure in CONTRIBUTING.md [ci skip] 2021-01-28 09:21:29 +01:00
Mateusz Łoskot
4e0f815f5e build: Remove most of uses of cxxflags from test/Jamfile (#550)
Most uses of cxxflags are wrong.
Use b2 warnings instead, e.g. warnings=pedantic
2021-01-27 07:07:51 +01:00
Mateusz Łoskot
434e78f76b ci: R.I.P. Travis CI - Long live GitHub Actions
Follows:
- https://github.com/boostorg/gil/pull/544

Outstanding tasks:
- https://github.com/boostorg/gil/issues/549
- https://github.com/boostorg/gil/issues/548
2021-01-26 01:05:07 +01:00
Olzhas Zhumabek
a37f12b3e9 Add implementation of Hough transforms (#512)
Support construction from step_size, step_count, and a function for angles

Implement angle and radious version of Hough line transform and adds a demo
with static line that goes over secondary diagonal.

Implement incremental line raster
Implement naive line raster
Implement Bresenham line raster
Leave only Bresenham line rasterization

Naive and incremental algorithms were removed because they are supposed
to produce the same results anyway.
The reason for diverging results is inaccuracy of floating point numbers

Add circle rendering through trigonometric functions, using
arctan(1 / (radius + 1)) as minimal angle step.

Trigonometric circle rasterizer does not follow circle equation, but still
produces very round shapes.
A new testing methodology needs to be devised for this rasterizer.

The new version accepts start and points inclusively and tries to use
canonic representation during computations.

Slope decided to be is (diff_y + 1) / (diff_x + 1).
2021-01-25 23:31:39 +01:00
Mateusz Łoskot
81b4dc08bd ci: Add configuration for GitHub Actions (#544)
Add basic GitHub Actions configuration based on mp11
Remove Actions jobs using GCC 4.7 and 4.8 - unsupported compilers
Run b2 with --abbreviate-paths on Windows
The -std=c++1z is broken for clang-4.0 but no need to test it
Add -mbig-obj to GCC on Windows
  - That is to avoid string table overflow and file too big
Define _GLIBCXX_USE_CXX11_ABI=0 for clang 3.5, 3.6, 3.7
  - Should help avoid linker error:
    `undefined reference to std::ios_base::failure::failure(char const*, std::error_code const&)`
Disable certain check in algorithm_channel_relation test for clang<3.8
2021-01-25 02:34:04 +01:00
Debabrata Mandal
a68a95d5f4 Add code for ahe algorithm (#516) 2021-01-24 23:22:48 +01:00
Olzhas Zhumabek
b82aed8f8e Implement hstack and vstack (#506)
Allow non-equal dims along stack dim
Width can be different in hstack, height can be different in vstack
2021-01-24 21:43:06 +01:00
Debabrata Mandal
77255e9e61 Add histogram matching algorithm (#515) 2021-01-24 21:33:38 +01:00