Giter Site home page Giter Site logo

monomest / image-morphology Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 6.04 MB

Implementation of morphological erosion and opening on monochrome or colour BMP images. This is project 3 of 3 from ELEC4622 Multimedia Signal Processing, a course at UNSW. This project received full marks.

C 32.45% C++ 65.29% Batchfile 2.25%
signal-processing image-processing morphology

image-morphology's Introduction

ELEC4622 Project 3

Renee Lu, z5160268 | August, 2020

Tasks Overview

  1. Task 1 Monochrome to Bi-level Conversion
  2. Task 2 Bi-level Morphological Erosion
  3. Task 3 Bi-level Morphological Erosion with Circular Structuring Sets
  4. Task 4 Bonus Zero Padding vs. Symmetric Extension
  5. Task 5 Bi-level Morphological Opening
  6. Task 6 Bonus Greyscale Morphological Closing

Code Location

The solution file is found in:

  • Project3/Project3.sln

The code for Task 1, 2 and 3 are in, respectively:

  • Project3/Task1/main1.cpp
  • Project3/Task2/main2.cpp
  • Project3/Task3/main3.cpp
  • Project3/Task4/main4.cpp
  • Project3/Task5/main5.cpp
  • Project3/Task6/main6.cpp
  • Project3/Task6/main6_inefficient.cpp this is the inefficient version of main6.cpp

Project Properties

In Visual Studio, the non-default property configuration for the projects are:

  • Configuration Properties > General > Output Directory = [executables output file path] e.g. "....\Executables"
  • Configuration Properties > Advanced > Character Set = Use Multi-Bye Character Set
  • Configuration Properties > Debugging > Command Arguments = [input bmp file path] [output bmp file path] [threhold T] e.g. "..\Data\lenna_mono.bmp ..\Data\out.bmp 100"
  • C/C++ > Preprocessor > Preprocessor Definitions = WIN32; _CRT_SECURE_NO_DEPRECATE

Steps to Run

  1. Open Visual Studio
  2. Open the Project3/Project3.sln
  3. Configure the Project Properties as above
  4. Run the desired tasks using the command line arguments below:

To run Task 1 give the following command line arguments: [input bmp file path] [output bmp file path] [threshold T]

To run Task 2 give the following command line arguments: [input bmp file path] [output bmp file path] [structuring set location pairs]

To run Task 3 give the following command line arguments: [input bmp file path] [output bmp file path] [radius r]

To run Task 4 give the following command line arguments: [input bmp file path] [output bmp file path] [zero pad = 1 or 0]

To run Task 5 give the following command line arguments: [input bmp file path] [output bmp file path] [structuring set location pairs OR radius r]

To run Task 6 give the following command line arguments: [input bmp file path] [output bmp file path] [structuring set location pairs OR radius r]

image-morphology's People

Contributors

monomest avatar

Watchers

 avatar

Forkers

scorpio69t

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.