Once I simplified the selection down to the bare minimum criteria, the code seems to be performing reasonably well. The next step is the have the system be able to isolate when one or both of the iliac trackings have failed. It turns out that it is very uncommon for it to fail bilaterally and that typically the issue is unilateral and related to extreme asymmetric iliac size, severe stenosis, or high bifurcation. I think the easiest way to go about this will be to compare the two sides in terms of how far they have tracked and use that as an internal consistency check. I have noticed that there are a couple of studies where the scan acquisition outruns the contrast bolus and so in those situations there is typically symmetric decreased flow bilaterally.
At any rate, since we are talking about around 4% of the the total runs that it doesn't complete, there needs to be some kind of salvage algorithm. Well, that is an issue that I can address once I figure out how to accurately gauge failure. which reminds me, I still have to go back and write the salvage algorithm for the initial aortic tracking.