import diplib as dip
from matplotlib import pyplot as plt
#reading video
vid = dip.ImageReadICS(r'C:\Users\mrtij\.spyder-py3\20211123_152822_capture.ics')
vid = vid[0:-1, 0:-1, 325:3149]
smvid = dip.Gauss(vid, [2,2,0])
for i in range(1000, 1001):
img = smvid[0:-1, 0:-1, i]
imgmask = dip.IsodataThreshold(img)
imgmask = dip.Label(imgmask)
measuremnt = dip.MeasurementTool.Measure(imgmask, img)
print(measurment)
I am trying to find positions and sizes of blobs on a relatively low res video, the 20211123_152822_capture.ics file. First I add a smoothing filter and then two masking filters. The MeasurementTool.Measure function however, only returns sizes and not the positions of my blobs. I can't find how to fix this and thought maybe someone here could be of help. Edit: I only view a single frame here, I plan on saving the coordinates of each blob on each frame, hence the for loop.