Начало | Вкладка «Монитор» | Вкладка «Настройки» | Проверка профиля | Идентификация профиля | Параметры профиля | Диалог «Значения монитора» | Диалог «Установка гаммы» | Диалог «Установка эталонных файлов» | Урок по UFRaw |

# Справка по основному окну программы

LProf is an open source application that creates ICC profile for cameras, scanners and monitors.

## Создание профиля для сканера или фотокамеры

Camera and scanner profiles are built by using a thing known as an "IT8 target". IT8 targets are just a photo with a set of color patches. There are known colorimetric measurements for each of these patches. There is also a standard way to specify these measurements, the IT8/CGATS file format. Each IT8 target comes with a IT8/CGATS file that contains the colormetric measurements for that target.

IT8/CGATS is a way to encode data that is both, human and machine readable. You can open any IT8/CGATS reference file with a text editor. You can even modify the contents. Since it is a standard, most color management systems will accept it including LProf. A IT8/CGATS reference file contains measurements for a set of color patches. The measurement of each patch can be the device colorant values (the RGB or CMYK values in the 0..255 range) or the tristimulous values (XYZ or Lab) and some statistical data.

A IT8/CGATS reference file looks like this:

-----------------------------------------------------------

IT8.7/2 ORIGINATOR "Wolf Faust"

DESCRIPTOR "L* a* b* Batch average data (light D50, viewing angle 2)"

MANUFACTURER "Wolf Faust - http://www.coloraid.de"

CREATED "January 07, 2002" PROD_DATE "2001:12"

SERIAL "DIN A4 R012020"

MATERIAL "Kodak Professional Digital 3 - Non-Glossy"

NUMBER_OF_FIELDS 9

BEGIN_DATA_FORMAT

SAMPLE_ID XYZ_X XYZ_Y XYZ_Z LAB_L LAB_A LAB_B LAB_C LAB_H

END_DATA_FORMAT

NUMBER_OF_SETS 288

BEGIN_DATA

A1 3.25 2.71 1.94 18.86 11.18 2.87 11.55 14.41

A2 4.07 2.73 1.60 18.91 23.59 6.54 24.49 15.48

A3 5.79 3.42 1.75 21.67 33.38 9.60 34.73 16.05

A4 4.28 2.66 1.46 18.62 27.73 7.59 28.75 15.32

A5 11.97 10.30 7.42 38.38 15.04 4.16 15.61 15.47

.... etc ...

------------------------------------------------------------

The target manufacturer provides a IT8/CGATS file containing these measurements for the target. So, the target along with the targets IT8/CGATS reference file is gives us a set of KNOWN (calibrated) colors. We must then, tell the profiler which RGB values our scanner or camera returns for each of these patches.

LProf can grab the RGB values of each color patch on an IT8.7 target image. In order to generate a profile, we need the RGB and Lab values for each patch. Let's outline the scanner/camera profiling procedure. First we will detail how this is done with a scanner and then we will detail what is different when profiling a camera.

## Шаг 1: Rоррекция параметров сканера

First you should be aware that getting a good capture of the IT8.7 image is 80% to 90% of getting a good profile. This is extremely important and this is where most problems with getting good profiles occur.

Bit depth: You will need 24 bits (8 bits per color) per pixel at the very least but using 48 bit (16 bits per color channel) images is best. LProf will support all RGB color depths from 8 bit integer/channel to 32 bit integer/channel for integer RGB images and 32 and 64 bit float per channel images.

Gamma: On most scanners you can select the gamma to be used for scanning the image. In general you should use a gamma between 2.2 and 3.0. A Gamma 2.2 has the additional benefit of being close to the sRGB gamma, and this means the uncorrected Image will "look nice" on an "average" monitor. It is also near to perceptual gamma. Gamma 2.4 has the additional benefit of being closest to perceptual space, and this is a very good reason to use this value. Less that 2.2 (and of course the infamous 1.0) can generate a significant loss of detail in shadows while only to giving a slight improvement of highlight detail. Don't use this unless your are using 16 bits per channel or more, and even then, don't do it unless you know what are you doing! Gammas around 2.4 are best for flat bed scanners and film scanners with limited dynamic range. With high dynamic range film scanners values closer to 3.0 may be best. Don Hutchson of Hutch Color, for example, recommends a gamma of 2.8 for high dynamic range scanners. But for flat bed scanners more than 2.4 (up to 3.0) looses some highlight detail with no gains in shadow detail.

Turn off all color management, color enhancing and tweaking in scanner driver. Set brightness, contrast and hue (if available) to default values. Make sure that all controls are locked down and that the scanner software is not doing any automatic adjustments. These setting are supposed be your working scanning mode, so set all of them to reasonable defaults.

In addition make sure that none of the highlights on the target scan are blown out (on an 8 bit/channel scan no pixel RGB values should be equal to 255 and max RGB values as low as 225 are OK - vales around 235 to 240 are best). This is critical as many scanners produce blown out (clipped) highlights with the scanners default settings. Using a target image with clipped highlights will result in an invalid profile. This is a very common error so spend some time making sure that you prevent this from happening to you IT8.7 images.

It is also important to prevent the image from being "normalized" by the scanner software. Images that have been normalized will have the darkest pixel in the image have an RGB value of 0, 0, 0 and the brightest pixel will have an RGB value (for an 8 bits per channel images) of 255, 255, 255. This gives the profiling software incorrect information about the true gamut/dynamic range of the device being profiled and profiles created with IT8.7 images that have been normalized by the scanner software will not be valid. This is also a common mistake.

IMPORTANT: The profile will only be valid with the settings used to capture the IT8.7 target!

## Шаг 2: Cканирование шкалы IT8

Сохраните изображение (скан) шкалы IT8.7 в файл одного из поддерживаемых LProf форматов, приведёных ниже. LProf поддерживает следующие форматы изображений, в которых могут храниться снимки или сканы шкал IT8.7:

- BMP — Microsoft Windows bitmap image file.
- GIF — CompuServe graphics interchange format; 8-bit color.
- JPEG — Joint Photographic Experts Group JFIF format; compressed 24-bit color (only available if libjpeg is installed).
- PNG — Portable Network Graphic (only available if libpng is installed).
- PBM — Portable bitmap format (black and white).
- PGM — Portable graymap format (gray scale).
- PNM — Portable anymap.
- PPM — Portable pixmap format (color).
- SUN — SUN Rasterfile.
- TIFF — Tagged Image File Format. (only available if libtiff is installed.)
- VIFF — Khoros Visualization image file.

With 8, 16 or 32 bit integers or 32 or 64 bit floating point values per color channel if these higher bit depths are support by the image file format.

DON'T use JPEG! It is unsuitable for this purpose because of the loss of information that results when the data is compressed. You could use JPEG on final images, but not in the profiling process.

## Шаг 3: Извлечение значений RGB из каждого цветового поля

Снять и обработать значения всех полей вручную было бы довольно утомительно: на типичной шкале IT8.7 больше 250 цветовых полей, а в некоторых их 288. При использовании LProf эта задача упрощается.

Перед началом работы необходимо установить файл эталона шкалы так, чтобы LProf увидел его. Это делается через диалог установки эталонных файлов. Запустите LProf, перейдите на вкладку «Профилировщик камер и сканеров» и нажмите кнопку «Загрузить изображение». Выберите файл скана шкалы, полученный на предыдущем этапе.

I will use the scandmo.png image located in the "data/pics" directory as a sample. This is a Kodak film target, scanned with a scanner that adds a huge magenta cast. Don't worry, the profile will turn this one into a nice looking image and the magenta cast will help demonstrate how effective profiles generated with LProf are. The reference file for this IT8.7 target (e3199608.TXT) is also located in the "data/pics" directory. Since this is a Kodak target in the Install Reference File Dialog select the "IT8.7 19+3 (Kodak) column picker" template when installing the reference file. Для замера RGB-значений цветовых полей мышью поместите трафарет на снимок шкалы щелчком по каждому из его углов. Каждый угол в состоянии выбранности содержит маркёр. Если вы его не видите, вы либо выбрали неправильный файл эталона, либо некорректно установили его.

Когда все четыре угла маркированы, на снимке шкалы появляется дважды экспонированный трафарет. Убедитесь в том, что все зелёные прямоугольники находятся внутри цветовых полей. В случае неудачи полученный профиль будет некорректным. Вы можете скорректировать положение угловых маркеров для уточнения положения трафарета. В некоторых случаях вам может понадобиться сделать заметные корректировки для того чтобы трафарет лёг ровно. Вы также можете скорретировать относительный размер «активных зон», задав его в процентах в поле «Безопасная зона» вкладки «Настройки». Чем меньше значение безопасной зоны, тем больше активная зона. Как правило, необходимости трогать что-либо ещё кроме, возможно, корректировки расположения угловых меток, нет. Как только расположение активных зон вас устраивает, считайте, что у вас есть корректный эталонный файл и RGB-значения, полученные от камеры. Теперь мы можем сравнить их для создания профиля.

## Шаг 4: Cоздание профиля

С этого момента всё достаточно просто. Для начала укажите имя файла создаваемого профиля. Для этого нажмите кнопку “...” справа от метки «Файл создаваемого профиля» и выберите каталог, в который будет сохранён профиль. В GNU/Linux этим каталогом будет $HOME/.color/icc. В Windows это будет стандартный для Windows каталог с профилями (в большинстве случаев — c:\WINDOWS\SYSTEM32\spool\drivers\color). Дайте профилю «говорящее» имя, например, scandmo.icm. Для того, чтобы выбирать этот профиль в используемых программах было проще, щелчком по кнопке «Идентификация профиля» откройте диалог с метаданными профиля и заполните все поля. Теперь остаётся записать сам файл профиля нажатием кнопки «Создать профиль». Через несколько секунд в каталоге появится небольшой файл профиля для вашего сканера.

Вы можете проверить характеристики профиля, нажав кнопку «Проверить профиль». В этом случае вы увидите дельту E, равную примерно 1.24. Теперь можно снизить уровень ошибок, но для создания улучшенного профиля потребуется несколько больше времени. Для оптимизации нажмите кнопку «Параметры профиля» и в открывшемся диалоге в группе «Разрешение» выберите вариант «33 — огромный». Нажмите кнопку “OK” для сохранения этих настроек и снова создайте файл профиля. На этот раз профиль будет создавать заметно дольше, но и дельта E будет равна примерно 0,8, а пиковое значение не будет превышать 3,6!

Again you can use the "Profile Checker" to inspect your profile. In the Profile Checker have a look at the Shaper TRC curve in the curves tab. Notice that the green curve is significantly different from the red and blue curves. Since green is the complement of magenta this is exactly what you would expect for a device that was producing images with a magenta cast.

## Шаг 5: Проверка профиля

Let's check how this profile affects the original Image. In the "Preferences" tab set the "input profile" to the newly created scanner profile, and "monitor profile" should be set to either a custom profile that was created using the monitor profiler (see next section) or a generic profile such as sRGB. In the "Preferences" tab check the "color manage display" check box and then go to the "Camera/Scanner Profile" tab to see the results. The girl's Image is dark, this is normal. However, the rest of patches are hugely modified, the gray scale should appear smooth and without any cast, as well as the overall magenta tint should disappear.

## Profiling Cameras

First all of the warnings that were spelled out in the scanner sections of this page about clipped or blown out highlights, blocked up shadows and normalized images apply to cameras as well. So please read the "Adjusting scanner controls" section again.

It may be difficult or impossible to avoid these problems on many cameras because of the number of automatic features that modern cameras have and the fact that on many consumer level cameras it is not possible to take total manual control of the camera (this is normally not a problem with DSLR type cameras). If that is the case then you may find it difficult or perhaps impossible to get good profiles for the camera.

#### Special Considerations for Wide Gamut Devices Such as Cameras

Some devices such as cameras and high end film scanners can have a very wide gamut and therefore it is harder to get good profiles for these devices. This is particularly true for digital cameras with larger sensor sites (DSLRs) that produce raw files since the raw software can pull out much more information from the sensor data then is typical for in camera processing.

The basic problem is that the gamut of the device is significantly wider than the gamut of the color patches in the IT8.7 target. Because of this always setup your device such that you use its full dynamic range even if that is significantly wider than the gamut of your IT8.7 target (also see the section on normalization in the "Adjusting scanner controls" above). When profiling a device using an IT8.7 target (or any other target for that matter) the gamut of the device profile is NOT limited by the target gamut unless you limit the range of values in the target image to less than the full dynamic range of the device. What is limited by the target gamut are the parts of the device gamut that are well defined by known data points. The rest of the gamut is extrapolated based on the known data points and may actually be larger than what the camera or scanner is capable of supporting since the extrapolated curves likely go down below the noise floor of the device (at least for cameras). In fact LProf and all other profilers have large amounts of very complex code for doing this extrapolation and many commercial profiler vendors consider this code to be highly secret supper duper magic stuff.

Авторские права © 1998-2007 LProf. Все права сохранены

авторские права © 2007 LProf | Trademarks | LProf 1.11.5