Juan, please add:
w[j].setSampleFormat(BitPerSample, floatSample);
before:
w[j].saveAs( outputFilePath, false, false, false, false );
And of course populate it in Dialog.
Often I want to change BitPerSamples in many pictures. For example: 64Float.fit > 16UInt.fit or 16UInt.cr2 > 32Float.fit
Best regards,
Nikolay.
PS of course I can do it via ImageContainer > SampleFormatConversion, so my wish is not important.