Thread: implementing grayscale image erosion and dilation in c++

  1. #1
    Registered User
    Join Date
    Jan 2016
    Posts
    6

    implementing grayscale image erosion and dilation in c++

    Hi, i need to implement grayscale image erosion and dilation in c++.
    I search on google but i can't find a simple example, or commented code for implementation of this algorithms. Can anyone suggest me a example of code or a pseudo algorithms please?
    Thanks

  2. #2
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    Quote Originally Posted by sdrabb View Post
    Hi, i need to implement grayscale image erosion and dilation in c++.
    I search on google but i can't find a simple example, or commented code for implementation of this algorithms. Can anyone suggest me a example of code or a pseudo algorithms please?
    Thanks
    There are tons of material on this subject. Noone is going to do the homework for you, especially if you cross-post.

  3. #3
    Registered User
    Join Date
    Jan 2016
    Posts
    6
    Quote Originally Posted by kmdv View Post
    There are tons of material on this subject. Noone is going to do the homework for you, especially if you cross-post.
    thank's for your answer , link me the tons of examples that you have, because i can't find them....

  4. #4
    Registered User
    Join Date
    Aug 2010
    Location
    Poland
    Posts
    733
    Quote Originally Posted by sdrabb View Post
    thank's for your answer , link me the tons of examples that you have, because i can't find them....
    Have a nice read:
    https://www.youtube.com/watch?v=xO3ED27rMHs
    https://www.youtube.com/watch?v=fmyE7DiaIYQ
    Morphological Dilation and Erosion - MATLAB & Simulink
    Eroding and Dilating — OpenCV 2.4.12.0 documentation
    Morphological Transformations — OpenCV-Python Tutorials 1 documentation
    Dilation, Erosion, Opening, Closing
    Dilation and erosion

    I have also found sample C++ implementation, but I won't link it here.

  5. #5
    Registered User
    Join Date
    Jan 2016
    Posts
    6
    Thank's a lot, i've implement an algorithm in c++ and seems to be working. You're not very confidente i'll post you my code, you no trust in me but you're wrong. thank's a lot for you're answer.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make a GrayScale filter?
    By Raigne in forum Game Programming
    Replies: 11
    Last Post: 02-25-2008, 05:52 AM
  2. Hi, how to convert a grayscale image into 8 bit image?
    By Alexanderbinich in forum C++ Programming
    Replies: 3
    Last Post: 03-15-2005, 07:50 PM
  3. Converting 24bits RGB to 8 bit Grayscale
    By FearOfTheDark in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 01-29-2003, 06:17 AM
  4. Grayscale and mode 13h
    By SMurf in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 05-08-2002, 12:36 PM
  5. how do i display a grayscale image ?
    By Unregistered in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 02-13-2002, 01:11 AM

Tags for this Thread