CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Region Growing

  1. #1
    Join Date
    Mar 2006
    Posts
    2

    Region Growing

    hi all

    i'm trying to make a region growing segmentation for my project , can anyone please help me writng the code

    the algorithm is as follows:

    1. seed the first pixel(seed) manually
    2. get the value of the seed
    3. compare it with its 4-neighbors or 8-neighbors(i dont know which is better)
    4. if the neighbors have the same value then they are in region
    5. compare these neighbors with there other neighbors and so on until it finds a boundary, then stop

    thanks a lot

  2. #2
    Join Date
    Nov 2005
    Posts
    162

    Re: Region Growing

    This is not a big problem, I think, you can use GetPixel to obtain the value of the given point and compare it with the neighbors, you don't give clear about which language you want to write, c++ or vb? or use MFC?

    Cindy
    --------------------------------------------------------------------------
    For high quality flow/diagram MFC/C++ Visio Like visualization Source Code,download XD++ at:
    http://www.********.net

  3. #3
    Join Date
    Mar 2006
    Posts
    2

    Re: Region Growing

    i have made it by another way but, anyway thanks for your help and your time

  4. #4
    Join Date
    Dec 2001
    Location
    Greece, Athens
    Posts
    1,015

    Re: Region Growing

    Quote Originally Posted by sherit
    .....
    4. if the neighbors have the same value then they are in region
    5. compare these neighbors with there other neighbors and so on until it finds a boundary, then stop
    ....
    "if the neighbors have the same value then they are in region": I suppose your image is thresholded into binary values. Otherwise, this is not the correct way to do this. If the image is in its original state, then you will have to use other statistics (than gray value), like texture and moments.

    Theodore
    Personal Web Page (some audio segmentation tools): www.di.uoa.gr/~tyiannak

  5. #5
    Join Date
    Nov 2010
    Posts
    1

    Re: Region Growing

    Quote Originally Posted by sherit View Post
    hi all

    i'm trying to make a region growing segmentation for my project , can anyone please help me writng the code

    the algorithm is as follows:

    1. seed the first pixel(seed) manually
    2. get the value of the seed
    3. compare it with its 4-neighbors or 8-neighbors(i dont know which is better)
    4. if the neighbors have the same value then they are in region
    5. compare these neighbors with there other neighbors and so on until it finds a boundary, then stop

    thanks a lot
    have you got source code for this???
    i need this source code for my final task

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured