| |
- blob_moments(...)
- None = blob_moments(Numeric.array(peaks1))
Loop over array filling out moments from sums
- bloboverlaps(...)
- success = bloboverlaps ( Numeric.array(blob1, 2D, Int), n1 , res1
Numeric.array(blob2, 2D, Int), n2 , res2,
verbose=0)
merges the results from blob1/res1 into blob2/res2
blob1 would be the previous image from the series, with its results
if it does not overlap it will stay untouched in res
if it overlaps with next image it is passed into that ones res
- blobproperties(...)
- res = blobproperties ( Numeric.array(data, 2D) ,
Numeric.array(blob, 2D, Int) ,
Int np ,
Int verbose )
Computes various properties of a blob image (created by connectedpixels)
data = image data
blob = integer peak assignments from connectedpixels
np = number of peaks to treat
verbose - flag about whether to print
- connectedpixels(...)
- nblobs = connectedpixels ( data=Numeric.array(data, 2D) ,
results=Numeric.array(blob, 2D, Int) ,
threshold=float threshold ,
verbose=Int verbose )
data is normally an image
blob is an array to receive pixel -> blob assignments
threshold is the value above which a pixel is considered to be in a blob
verbose flags printing on stdout
- roisum(...)
- (float) roisum ( Numeric.array(2D), xl , xh , yl , yh , verbose=0 )
sum( array[xl:xh , yl:yh] ) where x,y refer to SLOW/FAST indices
... NOT Numeric indices, but slow/fast
Unsure why this was written - can be done with Numeric anyway
- update_blobs(...)
- update_blobs ( Numeric.array(blob, 2D, Int),
Numeric.array(set , 2D, Int) , verbose=0)
updates blob image such that :
if blob[i,j] > 0:
blob[i,j] = set[blob[i,j]]
Used to update a blob image merging peaks which have overlapped due
to the third dimension.
|