-
Notifications
You must be signed in to change notification settings - Fork 1
Image_convert_v31
Convert among stacks, volumes and images, and change the file format. Conversion to a lower bit_depth automatically adjusts the gray level range. If it is between same bit depths and different sign, then only a histogram shift is done. If parameter --depth is not passed, then bit_depth is automatically chosen equal to or higher than input bit_depth. For stack output format, a selection file with the images in the stack is optionally created, replicating the labels of the input sel file. If output file extension is not set when --oroot is used (neither setting --oext nor :ext), then input format is chosen.
Parameters
--mode <mode
overwrite> where <mode> can be:
-
- $
--label <image_label
image> $-o, --output <output_file
> $--oroot <root
> $--save_metadata_stack <output_md
> $: Store the original image filename in the output metadata in column imageOriginal. $
: Preserve the columns from the input metadata. Some of the column values can be changed by the program. $--oext <extension
> where <extension> can be: - $
--type, -t <output_type
auto> where <output_type> can be:
Bit options $--depth, -d <bit_depth
default> where <bit_depth> can be:
-
- $
: Swap the endianess of the image file $
: Adjust the histogram to fill the gray level range $ or``: Do not apply any conversion to gray levels when writing in a lower bit depth or changing the sign
Stack options $``: Append the input to the output stack instead of overwriting it
Put a selection file into a stack:
xmipp_image_convert -i list.sel -o images.stkConvert a Spider volume to a MRC stack:
xmipp_image_convert -i spider.vol -o stack.mrcs -t stkCreate a stack of volumes with a Spider volume :
xmipp_image_convert -i spider.vol -o vol_stack.stk -t volAppend a volume to a volume stack:
xmipp_image_convert -i spider.vol -o vol_stack.stk -aSubstitute a volume in a volume stack:
xmipp_image_convert -i spider.vol -o 3@vol_stack.stkSave images in a stack as independent TIFF files in image directory with "newimage" basename in 8bit format:
xmipp_image_convert -i stackFile.stk -o tiffImages.sel --oroot images/newimage:tif -d uint8Convert a selection file of 16bit TIFF images to 8bit and overwrites files and sel file:
xmipp_image_convert -i tiff16.sel -d uint8Append a single image to a stack:
xmipp_image_convert -i img.spi -o stackFile.stk --appendAppend a selection file to a stack:
xmipp_image_convert -i selFile.sel -o stackFile.stk --appendReplace a single image into a stack:
xmipp_image_convert -i img.spi -o [email protected]Convert a MRC stack to a MRC volume:
xmipp_image_convert -i stack.mrc -o volume.mrc -t vol