Commit Graph

9 Commits

Author SHA1 Message Date
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
Felix Müller aed49466ce fixed format in "multithreading" and "lib" 2023-06-06 20:13:07 +02:00
teridax c889c13aa4
Merge branch 'main' into Image-Structs 2023-06-06 19:34:43 +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
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
Behrang Shafei e60c50e350
Initial commit 2023-05-17 09:15:28 +02:00