#119 label_region

open
nobody
None
5
2012-01-16
2012-01-16
Philip Rooney
No

Hi I have made my own version of label_region which was missing. Not sure how to post it in the relevant request area so will put it wherever this goes and hope somebody who needs it finds or somebody puts it where it is meant to be.

I have recreated it with 2 codes: region_label_alt.pro and blob_maker_alt.pro

It takes a fair bit longer than IDL to run, I was getting times of about 25 seconds on 512, 512 images. It outputs exactly the same results as region_label in /all_neighbours mode for everything I have tried it on. I imagine somebody more experianced could speed up the code, I already have a few ideas - the blob making function is recursive and moves between pixels and often checks one already visited which could be fine tuned. Not yet got the time to do so but hope to do soon.

As this is my first upload any and all feedback/ criticism is sought.

Cheers

Philip

Discussion

  • Philip Rooney
    Philip Rooney
    2012-01-16

    A recursive function that finds regions

     
    Attachments
  • Philip Rooney
    Philip Rooney
    2012-01-16

    I dont know how to attatch the second file!

     
  • Philip Rooney
    Philip Rooney
    2012-01-16

    The program you call your data on

     
    Attachments
  • Philip Rooney
    Philip Rooney
    2012-01-16

    Stupid moment over they are both there

     
  • Philip Rooney
    Philip Rooney
    2012-01-16

    Stupid moment over they are both there