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

Thread: region growing

  1. #1
    Join Date
    Nov 2010

    region growing

    i have problem in my project
    i must segmentation lesion skin cancer image

    my problem for region growing step
    i search for region growing code but i didnt get one example for C#
    this is step code i must use
    1. choose seed pixel
    2. see neighbour pixel, if same like seed get pixel into region
    3. if not same, stop step

    the goal is i get image with line in lesion of my image

    any idea for my problem??

  2. #2
    Join Date
    Jun 2001
    Melbourne/Aus (C# .Net 4.0)

    Re: region growing

    You need to get the initial Pixel at X, Y in the image. Save it's properties (assume colour). Then (maybe recursively) branch out from X,Y examining all of the neighbouring pixels. If they are the same colour then keep branching that direction, else stop.

    Alternatively, initially, process the whole of the pixels in bitmap into a 2-dimentional Boolean array. true=match, false=fail and then perform the same algorithm. This way you can decouple the 'match' criteria from the examination algorithm. ie the match may only require the colour to be a near match (threshold). I bit like the "magic wand" tool found in popular paint applications.
    Ohhhhh.... Old McDonald was dyslexic, E O I O EEEEEEEEEE.......

Tags for this Thread

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)