[argyllcms] Re: bug in scanin

  • From: Sylvain Ard <sylvain.ard@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Sat, 30 Apr 2022 20:05:43 +0200

re,
it is the last thing I do this evening, is the output of colprof is good ?
thank you
best regards

C:\Users\Sylvain ARD\Dropbox\Documents
Sylvain\autoentrepreneur\Contrats\Projet
couleurs\PROGRAMME\Delphi\Win32\Debug\argyll\bin>colprof -v -D"Scanner A"
-qm -ax -ua mire
No of test patches = 288
Creating extrapolation black and white points:
Creating matrix...
 100%
Matrix = 0.332341 -0.064015 0.167587
         0.081702 0.336803 0.051051
         -0.111169 -0.147020 0.643478
Creating matrix and single gamma curve...
 100%
Matrix = 0.617964 0.378263 0.181923
         0.330876 0.868301 0.067761
         0.018990 0.123212 0.854017
Gamma = 2.344536
Creating matrix and gamma curves...
 100%
Matrix = 0.674835 0.384275 0.181837
         0.343387 0.864833 0.068267
         -0.004198 0.110115 0.851308
Gamma = 2.561568 2.281925 2.275391
Creating matrix and curves...
 100%
Matrix = 0.647842 0.373353 0.177055
         0.345299 0.850132 0.068377
         0.022551 0.110023 0.821680
Input offset  = -0.110862 -0.021621 -0.055563
Output offset = 0.000000 -0.000000 0.000000
0 gamma = 2.175734 2.386850 2.185160
1 harmonics = -0.330613 -0.309452 -0.299036
Added synthetic point @ 0.000000 0.000000 0.000000, val -0.001164 -0.000695
-0.000649, weight 0.500000
Added synthetic point @ 0.023759 0.023738 0.025542, val -0.000836 -0.000445
-0.000362, weight 0.500000
Added synthetic point @ 0.047519 0.047477 0.051085, val -0.000462 -0.000091
-0.000062, weight 0.500000
Added synthetic point @ 0.071278 0.071215 0.076627, val 0.000171 0.000788
0.000451, weight 0.500000
Added synthetic point @ 0.095038 0.094953 0.102169, val 0.001304 0.002428
0.001966, weight 0.370882
Added synthetic point @ 0.930198 0.929371 1.000000, val 1.007566 1.037064
0.918949, weight 0.500000
Added synthetic point @ 0.846657 0.845904 0.910190, val 0.792253 0.817672
0.711739, weight 0.023531
Added synthetic point @ 0.828045 0.827309 0.890182, val 0.752885 0.777486
0.674143, weight 0.132669
Added synthetic point @ 0.000000 0.000000 0.000000, val -0.001164 -0.000695
-0.000649, weight 0.500000
Added synthetic point @ 0.023759 0.023738 0.025542, val -0.000836 -0.000445
-0.000362, weight 0.500000
Added synthetic point @ 0.047519 0.047477 0.051085, val -0.000462 -0.000091
-0.000062, weight 0.500000
Added synthetic point @ 0.071278 0.071215 0.076627, val 0.000171 0.000788
0.000451, weight 0.500000
Added synthetic point @ 0.095038 0.094953 0.102169, val 0.001304 0.002428
0.001966, weight 0.370882
Added synthetic point @ 0.930198 0.929371 1.000000, val 1.007566 1.037064
0.918949, weight 0.500000
Added synthetic point @ 0.846657 0.845904 0.910190, val 0.792253 0.817672
0.711739, weight 0.023531
Added synthetic point @ 0.828045 0.827309 0.890182, val 0.752885 0.777486
0.674143, weight 0.132669
Estimating white point
Picked white patch 15 with dev = 0.85066940 0.84991350 0.91450370
       XYZ = 0.80110000 0.82670000 0.72020000, Lab = 92.869769 0.782365
-3.445857
Picked black patch 288 with dev = 0.18440900 0.13767630 0.15512140
       XYZ = 0.00720000 0.00740000 0.00630000, Lab = 6.684393 0.262065
-0.369478
Approximate White point XYZ = 0.80110000 0.82670000 0.72020000, Lab =
92.869769 0.782365 -3.445857
Creating optimised per channel curves
About to optimise temporary matrix
 100%
About to optimise a common ord 0 input curve and matrix
 100%
About to optimise a common input curve and matrix
 100%
About to optimise input curves and matrix
 100%
About to optimise output curves and matrix
 100%
About to optimise input curves and matrix again
 100%
About to optimise input, matrix and output together
 100%
About to create grid position input curves
Create final clut from scattered data
********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************
Creating fast inverse input lookups
White point XYZ = 0.96420288 1.00000000 0.82490540, Lab = 100.000000
0.000000 0.000000
Find black point
Black point XYZ = 0.00787160 0.00813912 0.00730100, Lab = 7.352034 0.096286
-1.108247
Done A to B table creation
Setting up B to A table lookup
Creating B to A tables
Rev cache RAM = 2408 Mbytes
Looks like an XYZ space
Initializing nnrev arrays...
There is 1 rev cache instance with 2408 Mbytes limit
nnrev initialization done
Initializing nnrev arrays...
There are 2 rev cache instances with 3351 Mbytes limit
nnrev initialization done
100%
Done B to A table
There is 1 rev cache instance with 2408 Mbytes limit
Profile check complete, peak err = 6.294712, avg err = 1.237142

C:\Users\Sylvain ARD\Dropbox\Documents
Sylvain\autoentrepreneur\Contrats\Projet
couleurs\PROGRAMME\Delphi\Win32\Debug\argyll\bin>pause
Appuyez sur une touche pour continuer...
Sylvain Ard
0549507724
0778380991
sylvain.ard@xxxxxxxxx
http://sylvain-ard.fr
Entreprise individuelle SIRET : 80079243400022
Appt 26 Bât A Résidence Le Patio
83 rue de la Bugellerie
86000 Poitiers


Le sam. 30 avr. 2022 à 19:55, Sylvain Ard <sylvain.ard@xxxxxxxxx> a écrit :

I cropped the color chart and correct the CGATS file, it was PROD_DATE "
2022:02” the last quote is incorrect it would be " and it works ! I will
contact the manufacturer for he fix his CGATS files
Sylvain Ard
0549507724
0778380991
sylvain.ard@xxxxxxxxx
http://sylvain-ard.fr
Entreprise individuelle SIRET : 80079243400022
Appt 26 Bât A Résidence Le Patio
83 rue de la Bugellerie
86000 Poitiers


Le sam. 30 avr. 2022 à 19:55, Sylvain Ard <sylvain.ard@xxxxxxxxx> a
écrit :

thank you very much !
Sylvain Ard
0549507724
0778380991
sylvain.ard@xxxxxxxxx
http://sylvain-ard.fr
Entreprise individuelle SIRET : 80079243400022
Appt 26 Bât A Résidence Le Patio
83 rue de la Bugellerie
86000 Poitiers


Le sam. 30 avr. 2022 à 19:55, Sylvain Ard <sylvain.ard@xxxxxxxxx> a
écrit :

I cropped the color chart and correct the CGATS file, it was PROD_DATE "
2022:02” the last quote is incorrect it would be " and it works ! I will
contact the manufacturer for he fix his CGATS files


Sylvain Ard
0549507724
0778380991
sylvain.ard@xxxxxxxxx
http://sylvain-ard.fr
Entreprise individuelle SIRET : 80079243400022
Appt 26 Bât A Résidence Le Patio
83 rue de la Bugellerie
86000 Poitiers


Le sam. 30 avr. 2022 à 19:27, Michael Perry <dmarc-noreply@xxxxxxxxxxxxx>
a écrit :

Dear Sylvain

- the bed of your scanner needs cleaning.

- your target should be flatter - maybe put a few sheets of paper on
top of it

- try cropping mire.tif (the image of the chart) "scanin is setup to
deal with a raster file that has been roughly cropped to a size that
contains the test chart"

Read this and try again perhaps Scanin Usage
<https://argyllcms.com/doc/scanin.html>

Michael



On 30 Apr 2022, at 16:43, Sylvain Ard <sylvain.ard@xxxxxxxxx> wrote:

Hello I have the following error in scanin and diag.tif is unreadable
and not ti3 was generated, I post in attachments the files

The command was scanin -dipn -G1.0 -v2 mire.tif it8.cht R202202.txt

 mire.tif
<https://drive.google.com/file/d/13hjUcDKyXtnIFKelQpkOX3Njb9_Rc6Ws/view?usp=drive_web>
C:\Users\Sylvain ARD\Dropbox\Documents
Sylvain\autoentrepreneur\Contrats\Projet
couleurs\PROGRAMME\Delphi\Win32\Debug\argyll\bin>scanin -dipn -G1.0 -v2
mire.tif it8.cht R202202.txt
Input file 'mire.tif': w=2550, h=3509, d = 3, bpp = 8
Data input file 'R202202.txt'
Data output file 'mire.ti3'
Chart reference file 'it8.cht'
Creating diagnostic tiff file 'diag.tif'
About to allocate scanrd_ object
Verbosity = 2, flags = 0x42a01
About to read input tiff file and discover groups
adivval = 0.420483
About to calculate edge lines
692 useful edges out of 11042
About to calculate rotation
Mean angle = 0.682178
Standard deviation = 6.700475
Robust mean angle = -0.143494 from 650 lines
About to calculate feature information
About to read reference feature information
Read of chart reference file succeeded
About to match features
Checking xx
Checking yy
Checking xy
Checking yx
Checking xix
Checking yiy
Checking xiy
Checking yix
Axis matches for each possible orientation:
  0: xx  = 0.424655, yy  = 0.447794, xx.sc  = 0.331469, yy.sc  =
0.121743
 90: xiy = 0.529406, yx  = 0.547263, xiy.sc = 0.330027, yx.sc  =
0.330050
180: xix = 0.436394, yiy = 0.343614, xix.sc = 0.331206, yiy.sc =
0.164134
270: xy  = 0.501944, yix = 0.469300, xy.sc  = 0.330263, yix.sc =
0.329471
r0 = 0.226662, r90 = 0.761370, r180 = 0.275255, r270 = 0.685512
bcc = 0.761370, wcc = 0.226662
There are 2 candidate rotations:
cc = 0.761370, irot = 89.856506, xoff = -2681.950213, yoff =
678.184921, xscale = 3.030060, yscale = 3.029844
cc = 0.685512, irot = 269.856506, xoff = 809.440044, yoff =
-1924.563465, xscale = 3.027888, yscale = 3.035173
About to compute match transform for rotation 89.856506 deg.
About to setup value scanrdg boxes
About to read raster values
About to compute expected value correlation
About to compute match transform for rotation 269.856506 deg.
About to setup value scanrdg boxes
About to read raster values
About to compute expected value correlation
Expected value distance values are:
0, rot 89.856506: 307.013045
1, rot 269.856506: 2528.238558
Chosen rotation 89.856506 deg. as best
About to compute final match transform
Improve match
About to setup value scanrdg boxes
About to read raster values
About to write diag file
scanin: Error - CGATS file 'R202202.txt' read error : Read line got
symbol 'Supreme"
NUMBER_OF_FIELDS 7
BEGIN_DATA_FORMAT
SAMPLE_ID   XYZ_X   XYZ_Y   XYZ_Z          LAB_L   LAB_A   LAB_B
END_DATA_FORMAT
NUMBER_OF_SETS 288
BEGIN_DATA
A1           3.77    3.31    2.33          21.25    9.15    3.30
A2           4.29    3.10    1.97          20.44   20.18    5.26
A3           5.10    3.16    1.76          20.69   29.59    7.86
A4           6.15    3.68    1.61          22.59   33.49   12.73
A5          10.94    9.80    7.24          37.49   11.56    3.35
A6          12.66    9.64    6.42          37.19   24.88    6.30
A7          14.25    9.42    5.48          36.77   36.91    9.97
A8          17.32    8.88    2.43          35.76   59.06   27.45
A9          34.61   34.27   27.57          65.18    5.46    1.18
A10         35.70   33.81   25.56          64.81   10.73    4.01
A11         37.23   33.42   24.31          64.50   17.11    5.71
A12         42.91   32.62   21.11          63.85   37.57   10.72
A13         79.42   82.22   71.98          9' that's too long


C:\Users\Sylvain ARD\Dropbox\Documents
Sylvain\autoentrepreneur\Contrats\Projet
couleurs\PROGRAMME\Delphi\Win32\Debug\argyll\bin>pause
Appuyez sur une touche pour continuer...

Sylvain Ard
0549507724
0778380991
sylvain.ard@xxxxxxxxx
http://sylvain-ard.fr
Entreprise individuelle SIRET : 80079243400022
Appt 26 Bât A Résidence Le Patio
83 rue de la Bugellerie
86000 Poitiers
<R202202.txt>



Other related posts: