base functions for vision modeling