Skip to content

Picture Comparer v.0.6.2

Choose a tag to compare

@maksik997 maksik997 released this 07 Sep 13:46

Description

After a significant period of development and refinement, I have applied numerous code cleanups and optimizations to enhance the library's functionality and performance.

Changelog

FileOperator Rebuild

  • Rebuilded FileOperator Class: The FileOperator class has been completely rebuilt to improve efficiency and maintainability.
  • New Async Handling: Introduced a new method for handling asynchronous operations using CompletableFuture, providing a more robust and modern approach to asynchronous file processing.
  • FileVisitor Class: Added a new FileVisitor class to facilitate traversing and processing files within directory trees more effectively.
  • FileOperation Interface: Created the FileOperation interface to define various file-related operations, enhancing modularity and flexibility.
  • FileValidator Class: Developed the FileValidator class for validating files, which includes the FilePredicate interface to ensure that only valid files are processed.
  • Package Reorganization: Reorganized the packages to improve code structure and readability.

Predicates Rebuild

  • Rebuilded FilePredicate Interface: The FilePredicate interface has been revamped for better usability and functionality.
  • Rebuilded ImageFilePredicate Class: The ImageFilePredicate class has been updated to work seamlessly with the new FilePredicate interface, enhancing its effectiveness in file validation.

DCT Algorithms Optimization and Rebuild

  • Quantifier Class for DCT: Added a new Quantifier class to handle quantization in the DCT (Discrete Cosine Transform) algorithm, improving precision and performance.
  • Transformer Class for DCT: Introduced the Transformer class to facilitate DCT transformations, enhancing the algorithm's efficiency.
  • Rebuilded DCT Class: The DCT class has been refactored into a facade, streamlining its interface and improving ease of use.

Algorithms Rebuild and ImageRecord Rebuild

  • Rebuilded ImageRecord: The ImageRecord class has been updated for better functionality and integration with the new algorithms.
  • Algorithm Interface: Added a new Algorithm interface to standardize algorithm implementations and facilitate the addition of new algorithms.
  • PerceptualHash Class: Introduced the PerceptualHash class for perceptual image hashing, enabling more robust image similarity comparisons.
  • PixelByPixel Class: Added the PixelByPixel class for pixel-by-pixel image comparison, providing an additional method for image analysis.
  • Removed Obsolete Functions: Deleted outdated and unnecessary functions from the ImageRecord class to streamline its functionality.

RecordProcessor

  • Created RecordProcessor Class: Developed the RecordProcessor class to handle the processing of records, including grouping by checksum and applying algorithms for duplicate extraction.

Documentation Updates

  • README.md Update: Updated the README.md file to reflect the latest changes and provide clearer instructions and information about the library.
  • LICENSE.txt Created: Added a LICENSE.txt file to define the terms under which the library is distributed.