// Add the top-level elements to the mix element, to make life simpler.
bdoi = new BasicDigitalObjectInformation();
mix.setBasicDigitalObjectInformation(bdoi);
bii = new BasicImageInformation ();
mix.setBasicImageInformation (bii);
bic = new BasicImageCharacteristics ();
bii.setBasicImageCharacteristics (bic);
phi = new PhotometricInterpretation ();
bic.setPhotometricInterpetation(phi);
icm = new ImageCaptureMetadata ();
mix.setImageCaptureMetadata(icm);