Skip to content

anshulagrawal2902/DSA_final

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Octree-based Image Compression

Overview

This project aims to implement an octree data structure in the C language to reduce the number of different color pixels in an image, thereby compressing its size. By utilizing the octree structure, the program identifies and groups similar color pixels together, effectively reducing redundancy and optimizing image storage.

Features

  • Octree Data Structure: Utilizes an octree to organize and analyze color pixel data efficiently.
  • Image Compression: Reduces the number of distinct color pixels in an image, resulting in smaller file sizes.
  • Customization: Users can adjust compression settings to achieve desired levels of image quality and file size reduction.

How it Works

  1. Image Input: The program takes an input image file in a common format such as JPEG or PNG.
  2. Color Analysis: It analyzes the color distribution in the image and constructs an octree data structure to represent this distribution.
  3. Compression: By traversing the octree, the program identifies clusters of similar color pixels and replaces them with a single representative color.
  4. Output: The compressed image is generated, with a reduced number of distinct color pixels, resulting in a smaller file size.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published