| 446 | |
| 447 | |
| 448 | void |
| 449 | TrackerFrameAccessor::ReleaseImage(Key key) |
| 450 | { |
| 451 | MvFloatImage* imgKey = (MvFloatImage*)key; |
| 452 | QMutexLocker k(&_imp->cacheMutex); |
| 453 | |
| 454 | for (FrameAccessorCache::iterator it = _imp->cache.begin(); it != _imp->cache.end(); ++it) { |
| 455 | if (it->second.image.get() == imgKey) { |
| 456 | --it->second.referenceCount; |
| 457 | if (!it->second.referenceCount) { |
| 458 | _imp->cache.erase(it); |
| 459 | |
| 460 | return; |
| 461 | } |
| 462 | } |
| 463 | } |
| 464 | } |
| 465 | |
| 466 | /* |
| 467 | * @brief This is called by LibMV to retrieve an the mask, which is always defined in the reference frame. |
no test coverage detected