Index Switcher
IndexSwitcher
The idea is to switch from valid indices for target to invalid indices for target. If index in invalid for the target, then we return all zero vector as target. This combines both logic: 1. Using less amount of total data. 2. Using less amount of target data but using full data.
get_invalid_target_hw(t)
This is the opposite of get_valid_target_hw. It returns a h,w which is not valid for target. This is only valid for single frame setup.
get_valid_target_hw(t)
This is the opposite of get_invalid_target_hw. It returns a h,w which is valid for target. This is only valid for single frame setup.
get_valid_target_index()
Returns an index which corresponds to a frame which is expected to have a target.