We show some necessary conditions for minimizers of a functional depending on free discontinuities, free gradient discontinuities and second derivatives, which is related to image segmentation. A candidate for minimality of main part of the functional is explicitly exhibited