8.50. Exportar histograma

8.50.1. Generalidades

Exports the image histogram to a text file, so it can be used by other programs and loaded into spreadsheets. The histogram is produced for the selected image area. Fully transparent pixels are not counted.

The resulting file is a CSV file (Comma Separated Values), which can be imported directly in most spreadsheet programs. The first row of the CSV file is a title row. One data row is generated for each "Bucket". Each pixel value can be in the range of 0 to 255, and will be included in one of the buckets depending on the bucket's range.

The first column is titled "Range Start" and contains the starting value of the bucket. The following columns contain the values for different channels. Which channels will be included depends on the image type. The meaning of the values in each of the channel columns, depends on the Output Format option.

Figura 16.233. Ejemplo de archivo exportado por Exportar histograma

Rango inicio,   Valor,  Rojo,  Verde,    Azul
          0,     0.0,   0.0,   486.0,    0.0
          1,     0.0,   0.0,   300.0,    0.0
          2,     0.0,   0.0,   336.0,    0.0
          3,     0.0,   0.0,   399.0,    0.0
          4,     0.0,   0.0,   510.0,    0.0

The example file above was generated for an RGB image, using the Pixel count output format, and a Bucket Size of 1. The row starting with the number 3 describes the fourth bucket and will include all pixels from value 3 up to (but not including) value 4. The number 399.0 in that row can then be interpreted as "There are 399 pixels that have a Green value of 3".

8.50.2. Activar el filtro

Este filtro se encuentra en el menú de la ventana de la imagen en ColoresInfoExportar histograma.

8.50.3. Opciones

Archivo del histograma

El archivo al que se exportará el histograma.

Tamaño del cubo

El Tamaño del cubo le permite controlar el número de colores considerados como similares y contados con el mismo cubo. Un valor alto del tamaño del cubo producirá menos cubos y por lo tanto menos filas ene l archivo exportado. Por ejemplo, un cubo de tamaño 1 producirá 256 cubos, mientras que un cubo de tamaño 16 producirá 16 cubos.

Muestra ponderada

If Sample Average is activated, the histogram will be generated for an image obtained by merging all visible layers. Otherwise, the histogram will only consider the current layer.

Formato de salida

If the Pixel count option is chosen, the values in the generated file will reflect the amount of pixels in each bucket. If Normalized is chosen, the values will be the amount of pixels in the bucket divided by the total amount of pixels. The Percent option is similar to Normalized, but the values are formatted as percents.