Commit Graph

42 Commits

Author SHA1 Message Date
Sven Vogel 7928bf0725 fixed format ... duuuuh 2023-06-18 01:09:45 +02:00
Sven Vogel d12377e9c5 added thread limit option to database
created proper README
2023-06-18 01:07:32 +02:00
Sven Vogel c3405c42cc added integration test
moved test image files to res folder
fixed bugs in image loader
2023-06-17 23:27:07 +02:00
Sven Vogel b498aee8a7 fixed multihtreading benchmark missing
removed default code from lib.rs
removed println statements from image_loader
added image loading feature to database
2023-06-17 22:31:18 +02:00
teridax 3bb064870d
Search index (#47)
* added the search index module

* changed the search function
deleted test feature

* changed the weighted compare for RGBA

Changed the Weighted compare for F32

Changed the Weighted compare for Vec

Changed the Weighted compare for Indices

added Indexed Images and functions

Changed Database that it uses Indexed Images

Added tests

Added the rgb_to_lab function

added pixels function

* added Documentary

* minor changes in Documentary

---------

Co-authored-by: Felix Müller <felixmueller1620@gmail.com>
2023-06-17 20:14:06 +00:00
teridax d83c89c8f0
Image loader (#46)
* imageLoader branch created
imageLoader file created
imageLoader function created (placeholder)
included imageLoader into lib.rs
added a new folder with 2 test img

* added the decoder and began to configure it

created new variables and initiated them with calues from the .info

added some questions

* added Debug to the the derive at the image mod.rs

added a few more test pngs

added functionality to the function imageLoader

added four functions which decode the IDAT chunk into the correspondig rgba values

added test functions

added documentation

---------

Co-authored-by: Schwingel0206 <Elias.alexander@unity-mail.de>
Co-authored-by: Schwingel0206 <132705455+Schwingel0206@users.noreply.github.com>
2023-06-17 20:02:27 +00:00
teridax ea023a8c39
Create LICENSE
@flixm16 and @Servostar  decided on GPLv2 as license.
2023-06-15 15:24:54 +00:00
Felix Müller 0f86c727cb combined the trait bounds to the trait "Sample" 2023-06-11 10:40:50 +00:00
Felix Müller bbbb85d5ba changed width and height in Image struct from usize to u32 2023-06-11 10:40:50 +00:00
teridax 243e94a506
Merge pull request #24 from programmieren-mit-rust/Image_Path
added Path to the Image Struct
2023-06-08 15:40:11 +00:00
Felix Müller 3d0fd76862 added Path to the Image Struct
added path function
changed tests and comments
2023-06-08 16:16:24 +02:00
Sven Vogel 57016c1083 Changes:
- implemented `Drop` for thread pool
 - thread pool uses a struct to store a function of specific signature
2023-06-07 13:30:22 +02:00
Felix Müller 52cb8639ea added the validate function for images.
added the "iter" and "iter_mut" functions
added a test for the validate function
added  "From<u8>" and "PartialOrd" to the generic
added documentation for the added features
2023-06-06 21:48:19 +02:00
Felix Müller aed49466ce fixed format in "multithreading" and "lib" 2023-06-06 20:13:07 +02:00
teridax d6bb8f38fa
Merge pull request #18 from programmieren-mit-rust/Image-Structs
Image structs
2023-06-06 19:35:08 +02:00
teridax c889c13aa4
Merge branch 'main' into Image-Structs 2023-06-06 19:34:43 +02:00
teridax 086c0b9ada
Merge pull request #16 from programmieren-mit-rust/multithreading
Multithreading
2023-06-06 18:10:23 +02:00
teridax 9bb2fcea52
Merge branch 'main' into multithreading 2023-06-06 18:02:03 +02:00
Sven Vogel 7a6dc389b9 finished documetation for thread pool 2023-06-06 17:56:34 +02:00
Felix Müller 9afaf0de5b Added Documentation
changed the requirements for the generic

wrote tests for the struct and all functions
2023-06-05 19:54:35 +02:00
teridax 334093ad87
Update README.md
Added reminder for good programming practices for this repo
(tb removed later on)
2023-06-05 17:40:00 +00:00
Sven Vogel 9be7bc18c7 fixed imports 2023-06-04 23:11:36 +02:00
Sven Vogel fcb904c5cd added `#[allow(unused)]` to `Image` implementation 2023-06-04 22:32:53 +02:00
Sven Vogel 125a3964a7 complete rewrite of `multithreading::ThreadPool` removing:
- The limitation of Atomics
- Multiple Mutexes
And added message passing
2023-06-04 22:31:00 +02:00
Felix Müller 418416425b added the Image Struct and basic functions and traits for it 2023-06-04 22:28:33 +02:00
teridax 10266dd1bc
Multithreading (#12)
* added multithreading crate with thread pool

* added crate mutlithreading

* replaced `threads` memeber from `Threadpool`
mutex with atomic primitive

* fixed doctest for threadpool

* added module documentation to multithreading

* added functionality to drop thread handles
automatically when threads have finished

* reformatted crate `multithreading` to pass tests

* added benchmark for `threadpool`
using `criterion`.

* finished benchmark for threadpool
and fixed documentation for threadpool

* added unit test to `multithreading`
2023-06-01 20:45:07 +02:00
Sven Vogel 45fe1afcd9 added unit test to `multithreading` 2023-05-31 17:51:35 +02:00
teridax 19db18d1be
Merge pull request #11 from programmieren-mit-rust/criterion
Criterion
2023-05-31 17:16:47 +02:00
Sven Vogel e16a38aeef finished benchmark for threadpool
and fixed documentation for threadpool
2023-05-31 17:09:44 +02:00
Sven Vogel c732864a74 added benchmark for `threadpool`
using `criterion`.
2023-05-31 09:00:49 +02:00
Sven Vogel 990a54a032 reformatted crate `multithreading` to pass tests 2023-05-30 22:25:08 +02:00
Sven Vogel 1208a04658 added functionality to drop thread handles
automatically when threads have finished
2023-05-30 15:12:02 +02:00
Sven Vogel 898d878554 added module documentation to multithreading 2023-05-26 11:11:00 +02:00
Sven Vogel 43bd19643b fixed doctest for threadpool 2023-05-26 10:40:13 +02:00
Sven Vogel 044a3f3747 replaced `threads` memeber from `Threadpool`
mutex with atomic primitive
2023-05-24 12:11:48 +02:00
Sven Vogel cbf42d6d57 added crate mutlithreading 2023-05-23 22:28:11 +02:00
Sven Vogel e48176707a added multithreading crate with thread pool 2023-05-23 22:27:41 +02:00
Behrang Shafei e24028ffc6
Update Programmentwurf.md 2023-05-19 09:01:37 +02:00
Behrang Shafei 52b1a6bce1
Update Programmentwurf.md 2023-05-19 08:58:38 +02:00
Behrang Shafei 0a1de19fa3
Update Programmentwurf.md 2023-05-19 08:58:22 +02:00
Sven Vogel e275e35624 added authors to cargo.toml 2023-05-17 09:45:51 +02:00
Behrang Shafei e60c50e350
Initial commit 2023-05-17 09:15:28 +02:00