Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port to C++: Morphological Operations #76

Merged
merged 22 commits into from
Mar 23, 2023
Merged

Conversation

Asc91
Copy link
Member

@Asc91 Asc91 commented Feb 22, 2023

In reference to issue #50
Added examples
1. erosion
2. dilation
3. opening
4. closing
5. gradient

Added helper functions

  1. erosion
  2. dilation
  3. difference

Added readme similar to previous year's morphology.

@Ris-Bali
Copy link
Contributor

Please use a proper naming convention for all files eg: algorithm.hpp and algo.cpp instead of using main.cpp and helper.hpp for every algorithm.

* Rename main.cpp to relevenat 'algo'.cpp
* Modify Makefile accordingly
@Asc91
Copy link
Member Author

Asc91 commented Feb 28, 2023

Renamed main.cpp to 'algo'.cpp
No changes made to helper.hpp as it's contents are same in all folders.

@Ris-Bali
Copy link
Contributor

Use a single helper.hpp then instead of multiple copies of the same file

1] Generalised modules for any size kernel
2] Modified file structure
3] Added module for padding of images
@Smit1603
Copy link
Contributor

Smit1603 commented Mar 1, 2023

  • Above commit had some major changes like ,
  • 1] Generalised modules for different kernel size
  • 2] Modified code with proper documentation and modified file structure as suggested by @Ris-Bali
  • 3] Added module for performing padding

Kindly review

Copy link
Collaborator

@amanchhaparia amanchhaparia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Break the paragraphs in readme.md. And avoid putting theory paragraphs continuously.

@Asc91 Asc91 marked this pull request as ready for review March 23, 2023 08:59
@amanchhaparia amanchhaparia merged commit 1169d10 into SRA-VJTI:dev Mar 23, 2023
aPR0T0 pushed a commit to aPR0T0/Pixels_Seminar that referenced this pull request Mar 23, 2023
* added code for erosion and dilation

* added code for opening, closing and gradient

* added readme

* removed template files

* added assets folder

* changed path for images

* Change naming scheme

* Rename main.cpp to relevenat 'algo'.cpp
* Modify Makefile accordingly

* Major changes
1] Generalised modules for any size kernel
2] Modified file structure
3] Added module for padding of images

* Add new image to assets folder

* Add dependencies to Makefiles

* Take image path as commandline argument

* Remove redundant files

* - Add table of contents
- Break long paragraphs in smaller sections.

* - Remove redundant function from helper.hpp
- Add comments

* Rename Assets->assets
Rename Readme.md -> README.md

* Revert Makefile changes

* Change format of helper.hpp
- made separate src and include folder

* Modify Makefile

* Change path of include file

* Rename files
- helper.cpp -> morphology.cpp
- helper.hpp -> morphology.hpp

* Change image path

* Change helper -> morphology

---------

Co-authored-by: Smit1603 <[email protected]>
Khushi-Balia pushed a commit to Khushi-Balia/Pixels_Seminar that referenced this pull request Mar 28, 2023
* added code for erosion and dilation

* added code for opening, closing and gradient

* added readme

* removed template files

* added assets folder

* changed path for images

* Change naming scheme

* Rename main.cpp to relevenat 'algo'.cpp
* Modify Makefile accordingly

* Major changes
1] Generalised modules for any size kernel
2] Modified file structure
3] Added module for padding of images

* Add new image to assets folder

* Add dependencies to Makefiles

* Take image path as commandline argument

* Remove redundant files

* - Add table of contents
- Break long paragraphs in smaller sections.

* - Remove redundant function from helper.hpp
- Add comments

* Rename Assets->assets
Rename Readme.md -> README.md

* Revert Makefile changes

* Change format of helper.hpp
- made separate src and include folder

* Modify Makefile

* Change path of include file

* Rename files
- helper.cpp -> morphology.cpp
- helper.hpp -> morphology.hpp

* Change image path

* Change helper -> morphology

---------

Co-authored-by: Smit1603 <[email protected]>
@advait-0
Copy link
Contributor

Can you add usage instructions to the morphology readme?
It'll be easier to replicate it's usage then at any time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants