Summary
An 8-bit image uses 1 byte for each pixel; a 16-bit image uses 2 bytes; a 32-bit image uses 4 bytes; and an RGB image uses either 3 or 4 bytes per pixel. (More on this later.) The obvious advantage of increasing the bit depth is that each pixel can represent a greater range of.
- Click Download File to download the file. When the File Download window appears, click Save to save the file to your hard drive. Browse to the location where you downloaded the file and double-click the new file. Read over the release information presented in the dialog window.
- One-bit raster datasets have 8-bit pyramid layers when stored in a file system, but in a geodatabase, 1-bit raster datasets can only have 1-bit pyramid layers, which makes the display unpleasant. By converting the data to 8 bit in a geodatabase, the pyramid layers are built as 8 bit instead of 1 bit, resulting in a proper raster dataset in the.
Saves a copy of a raster dataset or converts a mosaic dataset into a single raster dataset.
Usage
You can save your output to BIL, BIP, BMP, BSQ, CRF, DAT, Esri Grid, GIF, IMG, JPEG, JPEG 2000, MRF, PNG, TIFF, or any geodatabase raster dataset.
When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. When storing the raster dataset in a file format, you need to specify the file extension:
- .bil for Esri BIL
- .bip for Esri BIP
- .bmp for BMP
- .bsq for Esri BSQ
- .dat for ENVI DAT
- .gif for GIF
- .img for ERDAS IMAGINE
- .jpg for JPEG
- .jp2 for JPEG 2000
- .png for PNG
- .tif for TIFF
- .mrf for MRF
- .crf for CRF
- No extension for Esri Grid
This tool can be used to scale your pixel type from one bit depth to another. When you scale your pixel depth, your raster will display the same, but the values will be scaled to the new bit depth that was specified.
The output of this tool is always a raster dataset. This tool will accept a mosaic dataset as the input, but the output will still be a raster dataset—the contents of the mosaic dataset will be mosaicked to create a raster dataset.
If you checked Use world file to define the coordinates of the raster in Options, a world file will be written out. If a world file already exists, it will be overwritten. There may also be a half-pixel shift in the output spatial reference.
For file-based rasters, Ignore Background Value must be set to the same value as NoData for the background value to be ignored. File geodatabase rasters and enterprise geodatabase rasters will work without this extra step.
When storing your raster dataset to a JPEG file, a JPEG 2000 file, or a geodatabase, you can specify a Compression Type and Compression Quality in the Environments.
The GIF format only supports single-band raster datasets.
The Pixel Type parameter determines the bit depth of the output raster dataset. Rescaling of the raster values occurs when a different pixel type is chosen. If the pixel type is demoted (lowered), the raster values outside the valid range for that pixel depth will be truncated and lost. To learn about the bit depth capacity for supported export formats, see List of supported sensors.
The Build Multidimensional Transpose parameter is for data access optimization. By default, a CRF file stores each multidimensional slice in a separate folder and each slice is chunked into tiles. When you perform a transpose, the data will be chunked along dimensions rather than by slice and tile, making analysis such as temporal profiling faster and easier.
Syntax
Parameter | Explanation | Data Type |
The raster dataset or mosaic dataset you want to copy. | Raster Dataset; Mosaic Dataset; Mosaic Layer; Raster Layer; File; Image Service | |
out_rasterdataset | The name and format for the raster dataset you are creating.
When storing a raster dataset in a geodatabase, do not add a file extension to the name of the raster dataset. When storing a raster dataset to a JPEG file, JPEG 2000 file, TIFF file, or geodatabase, you can specify a compression type and compression quality. | Raster Dataset |
(Optional) | Specifies the storage parameters (configuration) for a geodatabase. Configuration keywords are set up by your database administrator. | String |
(Optional) | Remove the unwanted values created around the raster data. The value specified will be distinguished from other valuable data in the raster dataset. For example, a value of zero along the raster dataset's borders will be distinguished from zero values within the raster dataset. The pixel value specified will be set to NoData in the output raster dataset. For file-based rasters, Ignore Background Value must be set to the same value as NoData for the background value to be ignored. Enterprise and geodatabase rasters will work without this extra step. | Double |
(Optional) | All the pixels with the specified value will be set to NoData in the output raster dataset. | String |
(Optional) | Choose whether the input 1-bit raster dataset will be converted to an 8-bit raster dataset. In this conversion, the value 1 in the input raster dataset will be changed to 255 in the output raster dataset. This is useful when importing a 1-bit raster dataset to a geodatabase. One-bit raster datasets have 8-bit pyramid layers when stored in a file system, but in a geodatabase, 1-bit raster datasets can only have 1-bit pyramid layers, which makes the display unpleasant. By converting the data to 8 bit in a geodatabase, the pyramid layers are built as 8 bit instead of 1 bit, resulting in a proper raster dataset in the display.
| Boolean |
(Optional) | If the input raster dataset has a color map, the output raster dataset can be converted to a three-band output raster dataset. This is useful when mosaicking rasters with different color maps.
| Boolean |
(Optional) | Set the bit depth, or radiometric resolution, of the raster or mosaic dataset. If not defined, it will be taken from the first raster dataset.
| String |
(Optional) | When the output is a pixel type other than the input (such as 16 bit to 8 bit), you can choose to have the values scaled to fit into the new range; otherwise, the values that do not fit into the new pixel range will be discarded. If scaling up, such as 8 bit to 16 bit, the minimum and maximum of the 8-bit values will be scaled to the minimum and maximum in the 16-bit range. If scaling down, such as 16 bit to 8 bit, the minimum and maximum of the 16-bit values will be scaled to the minimum and maximum in the 8-bit range.
| Boolean |
(Optional) | Specifies whether an 8-bit, 3-band (RGB) raster dataset will be converted to a single-band raster dataset with a color map. This operation suppresses noise that is often found in scanned images and is ideal for screen captures, scanned maps, or scanned documents. This is not recommended for satellite or aerial imagery or thematic raster data.
| Boolean |
(Optional) | Specifies the output raster format.
| String |
(Optional) | Specifies whether a transformation associated with the input raster will be applied to the output. The input raster can have a transformation associated with it that is not saved within the input, such as a world file or a geometric function.
| Boolean |
(Optional) | Specifies whether to process the input mosaic dataset as a multidimensional raster dataset.
| Boolean |
(Optional) | Specifies whether to build the transpose for the input multidimensional raster dataset, which will chunk the data along each dimension to optimize performance when accessing pixel values across all slices.
| Boolean |
Code sample
This is a Python script sample for the CopyRaster tool.
Environments
Licensing information
- Basic: Yes
- Standard: Yes
- Advanced: Yes
Related topics
File Assistant 2 8 Bit Download
Bit depth is something we hear spoken of a lot. When the Panasonic GH5 was announced with the ability to shoot 10Bit video, a lot of people went kinda loopy. Equally as anticipated now is the Blackmagic Pocket Cinema Camera 4K's12Bit RAW CinemaDNG.
But what is it? And what does it mean in real terms for your footage or images? Well, the guys at the Videomaker channel on YouTube have your back, and they're here to explain in this 3-minute video.
Essentially, it boils down to the number of colours and shades of a colour that can be stored in the image. The bit depth is noted in binary digits (bits), and relates to how many different brightness levels are available in each of the three red, green and blue colour channels.
So, in an 8Bit image, each of the red, green and blue colour channels has 256 possible values for a total of around 16.7 million colours. Human vision can only see around 10 million colours, so isn't this enough? Well, while the human eye can see around 10 million colours, they aren't necessarily the same 10 million colours picked up in an 8Bit file.
There are subtle shades and colours in between them that our eyes notice but that 8Bit images simply can't reproduce. This is why we often see banding in gradients like skies. Increasing the bit depth from 8 to 10Bit only increases the file size by about 20%, but it increases that 16.7 million colour range to over a billion. And when you step up to 12Bit video, that's 68 billion possible colours that the camera can record in your work.
The other advantage of having a greater bit depth is that it gives you more latitude in post. And I'm not just talking about 'fixing' shots, either (although it will help with that). I'm just talking about simple colour grading.
If you load an 8Bit image into Photoshop and start adding adjustment layers, it's going to break down very quickly. And when you recompress it and save it back out as a jpg, it's going to lose even more data. Starting off with a 10Bit or 12Bit file means that it won't degrade so quickly while you're editing it, and the compression algorithms have more original information to work with when saving out.
While the video above is tailored more towards video, the same holds true for stills. This is why we've seen the progression from 10Bit RAW files to 12Bit, with 14Bit now the standard amongst most medium-to-high end DSLRs and mirrorless cameras. 14Bit, by the way, can contain over 4 trillion different colours and shades.
Many of the Phase One and Hasselblad medium format cameras are 16Bit per channel. That's 281 trillion possible colours. Now you know why people go on about their tonal reproduction. That's only twice the size of an 8Bit file, but containing around 240,000 times as much information.
File Assistant 2 8 Bits
You do, of course, typically need a more powerful computer to work with higher bit depth files. But computers are getting faster and cheaper every day.