integral-image-ndvm: Move export function to a class.