[argyllcms] Scanin Problem using -F option

Hello,

I have recently run into a problem generating a ti3 file using the -F option 
(manually setting the fiducial locations) with the scanin command. I am by no 
means an expert on this subject matter, so I apologize if the terminology that 
I use is incorrect or if my question is unclear.

I have written a little GUI application that makes the process of creating an 
ICC profile that characterizes a scanner for accurate color measurement a 
little easier. I wanted to give the user the option to manually select the 
three fiducial locations on the test target because I have found that 
occasionally argyll fails to accurately recognize the patch locations on the 
target that I'm using. The target that I'm using has 999 patches on it and was 
generated using a combination of argyll's targen and printtarg commands. Argyll 
also generated the cht file that describes the target. I have successfully used 
this target and cht file many times in the past so I am confident that both of 
these files are fine.

In order to be able to use the -F option with the scanin command I added the 
following line to the cht file immediately after the "BOXES 999" line:

  F _ _ _ _ 45.354331 38.834646 591.023622 38.834646 591.023622 773.007874

After I added this line, the diagnostic image (generated using -dipnoa) shows 
that Argyll accurately found all of the patches on the target, however it does 
not appear to be analyzing the patches and generating the RGB values and STDEV 
values for the patches on the target.  Additionally, the scanin command does 
not generate any errors. Normally when I generate a ti3 file using argyll's 
auto recognize ability, the ti3 file looks something like this:

ORIGINATOR "Argyll target"
CREATED "Tue Jun 10 13:15:47 2008"
KEYWORD "DEVICE_CLASS"
DEVICE_CLASS "INPUT"
KEYWORD "COLOR_REP"
COLOR_REP "XYZ_RGB"

KEYWORD "STDEV_R"
KEYWORD "STDEV_G"
NUMBER_OF_FIELDS 10
BEGIN_DATA_FORMAT
SAMPLE_ID XYZ_X XYZ_Y XYZ_Z RGB_R RGB_G RGB_B STDEV_R STDEV_G STDEV_B
END_DATA_FORMAT

NUMBER_OF_SETS 999
BEGIN_DATA
AA37 14.390 20.860 6.6900 25.243 58.484 50.771 2.4597 1.6701 1.5247
AA36 38.240 33.610 5.0400 41.580 32.262 42.752 6.0800 4.4558 3.7661
AA35 3.9700 11.030 4.1500 48.949 73.213 61.538 5.7536 1.6708 1.3596
...
A04 3.5600 2.8300 7.5800 77.364 44.637 44.307 3.4849 2.8877 2.0790
A03 22.210 24.290 31.750 82.760 55.276 51.006 3.0990 4.5184 2.7290
A02 14.630 8.8700 3.1400 99.993 99.993 99.993 7.8771 7.7541 7.3753
A01 19.290 13.070 4.1300 99.991 99.990 99.990 3.2029 2.4853 1.8155
END_DATA

Generating a profile using a ti3 file like the one above works flawlessly. 
However, when I use the -F option the RGB_* and STDEV_* fields in the ti3 file 
are all set to 0, like this:

...
BEGIN_DATA_FORMAT
SAMPLE_ID XYZ_X XYZ_Y XYZ_Z RGB_R RGB_G RGB_B STDEV_R STDEV_G STDEV_B
END_DATA_FORMAT

NUMBER_OF_SETS 999
BEGIN_DATA
AA37 14.390 20.860 6.6900 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
AA36 38.240 33.610 5.0400 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
AA35 3.9700 11.030 4.1500 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
AA34 4.2700 3.8500 4.5900 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
AA33 10.940 22.410 7.5400 0.0000 0.0000 0.0000 0.0000 0.0000 0.0000
...
END_DATA

Not surprisingly, when I attempt to create the profile using the faulty ti3 
file it gives me the following error:

profile: Error - 2, Failed to find high clip target for Lab space

Why is it not generating RGB and STDEV values when I manually set the fiducial 
locations? Have I overlooked an option that should be set?

Thanks in advance,
Andrew

Other related posts: