the transform being applied to non rectangular image segments