CellTrackingChallenge / CTC-FijiPlugins

[OBSOLETE] A collection of plugins related to the cell/nucleus tracking, motivated by the Cell Tracking Challenge.
http://www.celltrackingchallenge.net/
10 stars 5 forks source link

extractObjectDistance() is repeatedly creating a new images #2

Closed xulman closed 7 years ago

xulman commented 7 years ago

Reuse the created pair of floating images, instead of creating them again and again.

xulman commented 7 years ago

if removing solving this issue wouldn't do the trick/reasonable improvement; go for the solution suggested in #7

xulman commented 7 years ago

BTW: the creating of images has changed against the original implementation.. isn't that the cause of the super slow down??... anyway, solving this issue would render this change unimportant (time-wise) as the creating would happen only once for video! (not even for every frame)

xulman commented 7 years ago

re-using of helper images was implemented in commit 8c264727d60a1457ecb432834370a51931b6c1d1

xulman commented 7 years ago

Final remark: the change brought no improvement time-wise.... perhaps memory-wise (haven't checked though)