About ImageGraphCut3DSegmentationExample and ImageMultiLabelGraphCut3DSegmentationExample, How to use?

I have recently study the " ImageMultiLabelGraphCut3DSegmentationExample", But I did not know how to use the The demo, especially how to make" image.mhd multiLabelMask.mhd backgroundMask.mhd" parameters!
Can you give me a demo to make the parameters.

image