/** * Return JPEG2000CodecOptions using the given CodecOptions as the default. * @param options The specified options. */ public static JPEG2000CodecOptions getDefaultOptions(CodecOptions options) { JPEG2000CodecOptions j2kOptions = new JPEG2000CodecOptions(options); j2kOptions.quality = j2kOptions.lossless ? Double.MAX_VALUE : 10; j2kOptions.codeBlockSize = new int[] {64, 64}; j2kOptions.writeBox = true; return j2kOptions; }
newOptions = new ome.codecs.JPEG2000CodecOptions(); copyOptions(options, newOptions); ((ome.codecs.JPEG2000CodecOptions) newOptions).codeBlockSize = ((JPEG2000CodecOptions) options).codeBlockSize;
newOptions = new ome.codecs.JPEG2000CodecOptions(); copyOptions(options, newOptions); ((ome.codecs.JPEG2000CodecOptions) newOptions).codeBlockSize = ((JPEG2000CodecOptions) options).codeBlockSize;
options = new JPEG2000CodecOptions(options);