Hi folks. I have a very simple question about threading that I'm sure won't be difficult for a seasoned piddle twiddler..
I have a 2D matrix which is essentially a greyscale image. I need to implement a moving window over the image to perform a few transformations based on surrounding pixel values. For now I'll likely just be averaging the pixel intensity around each pixel so I can build a threshold. At the moment I'm using this code to get my moving window(s), inspired by the threads page on the wiki: $p->range($p->ndcoords()-15, 31, 'm')->reorder(2,3,0,1); This works fantastic -- except for the part where I run out of RAM and perl segfaults. So I was wondering how I should go about doing this. My current "workaround" is to use perl loops, and just move the window one slice at a time, adding and subtracting the columns as I get to them, so I can calculate a relatively fast average. It works, but I'm very sure this isn't the 'right' way to do it.. Any help would be greatly appreciated. Thanks, Jarrod.
_______________________________________________ Perldl mailing list [email protected] http://mailman.jach.hawaii.edu/mailman/listinfo/perldl
