GithubHelp home page GithubHelp logo

abalmumcu / .pgm-file-read-manipulation-write Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 9.39 MB

This repo includes; Image Negative, Logarithmic Transformation, Power-Law (Gamma) Transformation, Averaging Filter, Median Filter, Laplacian Filter, Sobel Gradiant, Histogram Equalization, DFT, Marr and Hildreth, Otsu Thresholding, Global thresholding

C++ 100.00%
pgm-extension pgm dft laplacian histogram-equalization gamma-transformation log-transformation median-filter averaging-filter sobel-gradient

.pgm-file-read-manipulation-write's Introduction

.pgm File Read, Manipulation, and Write

Project Description: This repository includes processes for reading, manipulating, and writing .pgm files using C++.

Project Overview

The ".pgm File Read, Manipulation, and Write" project focuses on performing various operations on .pgm files. It provides functionality to read input images in .pgm format, manipulate them using different algorithms, and write the manipulated images back to the disk.

Project Structure

The project contains the following directories and files:

  • Original pgm file: This directory stores the original input images in .pgm format.
  • output files: This directory is used to save the generated output images.
  • README.md: A Markdown file containing information about the project and its usage.
  • creating_new_pgm_file.cpp: A C++ source file for creating a new .pgm file.
  • dft.cpp: A C++ source file for performing Discrete Fourier Transform (DFT) on .pgm images.
  • histogram_equalization.cpp: A C++ source file for performing histogram equalization on .pgm images.
  • laplacian_and_sobel_gradiant.cpp: A C++ source file for applying Laplacian and Sobel gradient operators on .pgm images.
  • manipulation_with_filters.cpp: A C++ source file for manipulating .pgm images using different filters.
  • pgm_read_write.cpp: A C++ source file for reading and writing .pgm images.

Usage

To use the ".pgm File Read, Manipulation, and Write" project, follow these steps:

  1. Clone the repository:

    git clone https://github.com/abalmumcu/.pgm-file-read-manipulation-write.git
  2. Ensure that all input images with the .pgm extension are placed in the same directory as the code files.

  3. Compile the desired C++ source file using a C++ compiler:

    g++ -o executable_name source_file.cpp

    Replace executable_name with a suitable name for the generated executable.

  4. Execute the compiled executable:

    ./executable_name
  5. The program will perform the specified operations on the input .pgm images and save the output images to the "output files" directory.

Important Notes

  • All input images with the .pgm extension must be present in the directory where the code is located in order for the code to be compiled and run successfully.
  • After compilation and execution, all output images generated will be automatically saved to the directory where the code is located.
  • The content information (type, comment line, width, height, and maximum pixel value) of all input images will be displayed on the compilation screen after the compilation process.

License

This project is licensed under the MIT License.

.pgm-file-read-manipulation-write's People

Contributors

abalmumcu avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

djak1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.