BIC-MNI / ILT

ILT -- Image Layout Toolkit
1 stars 4 forks source link

ILT and minc-toolkit-1.0.04 place_images "Error: 48 bit images are not supported" #2

Closed gdevenyi closed 8 years ago

gdevenyi commented 9 years ago

Trying to run a simple command:

> create_verify_image ~/out.png -width 1600 -autocols 3 -row images/OASIS_0101_t1.mnc color:gray
----------------------
Row:     0
Volume:  images/OASIS_0101_t1.mnc
Color:   map: 0 min: 1.074265762 max: 3062.127969 type: gray
----------------------
mincinfo -error_string 999 -dimlength xspace -dimlength yspace -dimlength zspace images/OASIS_0101_t1.mnc
Plane: s Slice: 6.250000
Plane: s Slice: 48.500000
Plane: s Slice: 90.750000
Plane: c Slice: -71.000000
Plane: c Slice: -16.000000
Plane: c Slice: 39.000000
Plane: t Slice: -10.250000
Plane: t Slice: 36.500000
Plane: t Slice: 83.250000
================ Processing row 0 =================
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_pWLpa.obj 0 0 83.25 0 0 1
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_VMC7A.obj 0 0 36.5 0 0 1
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_bSZGH.obj 0 0 -10.25 0 0 1
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_LjnX5.obj 0 39 0 0 1 0
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_d24yS.obj 0 -16 0 0 1 0
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_i0nD2.obj 0 -71 0 0 1 0
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_qgeqy.obj 90.75 0 0 1 0 0
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_YzMyE.obj 48.5 0 0 1 0 0
make_slice images/OASIS_0101_t1.mnc /tmp/ILT_30582_hW1Y_/ILT_2e43a.obj 6.25 0 0 1 0 0
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_JkJX2.rgb -nolight -bg 'black'  -size 159 206  -ortho -view 0 0 -1 0 1 0  -eye 48.5 -16 304.25  -window_width 170.578  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_pWLpa.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_6pg70.rgb -nolight -bg 'black'  -size 159 206  -ortho -view 0 0 -1 0 1 0  -eye 48.5 -16 257.5  -window_width 170.578  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_VMC7A.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_nWEeE.rgb -nolight -bg 'black'  -size 159 206  -ortho -view 0 0 -1 0 1 0  -eye 48.5 -16 210.75  -window_width 170.578  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_bSZGH.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_6frvB.rgb -nolight -bg 'black'  -size 159 176  -ortho -view 0 1 0 0 0 1  -eye 48.5 -149 36.5  -window_width 170  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_LjnX5.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_1PXtT.rgb -nolight -bg 'black'  -size 159 176  -ortho -view 0 1 0 0 0 1  -eye 48.5 -204 36.5  -window_width 170  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_d24yS.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_NRoeA.rgb -nolight -bg 'black'  -size 159 176  -ortho -view 0 1 0 0 0 1  -eye 48.5 -259 36.5  -window_width 170  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_i0nD2.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_sb0QT.rgb -nolight -bg 'black'  -size 206 176  -ortho -view -1 0 0 0 0 1  -eye 311.75 -16 36.5  -window_width 221  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_qgeqy.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_HomNT.rgb -nolight -bg 'black'  -size 206 176  -ortho -view -1 0 0 0 0 1  -eye 269.5 -16 36.5  -window_width 221  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_YzMyE.obj  -delete_volume 0 
ray_trace -output /tmp/ILT_30582_hW1Y_/ILT_T2MJv.rgb -nolight -bg 'black'  -size 206 176  -ortho -view -1 0 0 0 0 1  -eye 227.25 -16 36.5  -window_width 221  -reverse_order_colouring -under black -over white -gray 1.07427 3062.13 images/OASIS_0101_t1.mnc 0 1  /tmp/ILT_30582_hW1Y_/ILT_2e43a.obj  -delete_volume 0 
place_images /tmp/ILT_30582_hW1Y_/ILT_hg_Xd.rgb 'black'  -size 1600 227  /tmp/ILT_30582_hW1Y_/ILT_JkJX2.rgb 1441 11 /tmp/ILT_30582_hW1Y_/ILT_6pg70.rgb 1279 11 /tmp/ILT_30582_hW1Y_/ILT_nWEeE.rgb 1117 11 /tmp/ILT_30582_hW1Y_/ILT_6frvB.rgb 954 26 /tmp/ILT_30582_hW1Y_/ILT_1PXtT.rgb 792 26 /tmp/ILT_30582_hW1Y_/ILT_NRoeA.rgb 630 26 /tmp/ILT_30582_hW1Y_/ILT_sb0QT.rgb 420 26 /tmp/ILT_30582_hW1Y_/ILT_HomNT.rgb 210 26 /tmp/ILT_30582_hW1Y_/ILT_T2MJv.rgb 0 26
/tmp/ILT_30582_hW1Y_/ILT_JkJX2.rgb: No error
Error in /tmp/ILT_30582_hW1Y_/ILT_JkJX2.rgb.
System command <place_images> failed with return value
 <256>.
 at /opt/quarantine/ILT/4bc2d846be07f888a038bca9fb0c1b004103754d/build/lib/perl5/ILT/ProgUtils.pm line 464
    ILT::ProgUtils::system_call('place_images /tmp/ILT_30582_hW1Y_/ILT_hg_Xd.rgb \'black\'  -s...') called at /opt/quarantine/ILT/4bc2d846be07f888a038bca9fb0c1b004103754d/build/lib/perl5/ILT/Executables.pm line 141
    ILT::Executables::run_executable('place_images', '/tmp/ILT_30582_hW1Y_/ILT_hg_Xd.rgb \'black\'  -size 1600 227 ...') called at /opt/quarantine/ILT/4bc2d846be07f888a038bca9fb0c1b004103754d/build/lib/perl5/ILT/ImageLayout.pm line 756
    ILT::ImageLayout::generate_image('ILT::ImageLayout=HASH(0x180d860)', '/home/cic/devgab/out.png', 1600, 0) called at /opt/quarantine/ILT/4bc2d846be07f888a038bca9fb0c1b004103754d/build/bin/create_verify_image line 452

Removing "cleanup" from the perl script and manually running the "place_images" command, I find: place_images /tmp/ILT_30582hW1Y/ILT_hg_Xd.rgb 'black' -size 1600 227 /tmp/ILT_30582hW1Y/ILT_JkJX2.rgb 1441 11 /tmp/ILT_30582hW1Y/ILT_6pg70.rgb 1279 11 /tmp/ILT_30582hW1Y/ILT_nWEeE.rgb 1117 11 /tmp/ILT_30582hW1Y/ILT_6frvB.rgb 954 26 /tmp/ILT_30582hW1Y/ILT_1PXtT.rgb 792 26 /tmp/ILT_30582hW1Y/ILT_NRoeA.rgb 630 26 /tmp/ILT_30582hW1Y/ILT_sb0QT.rgb 420 26 /tmp/ILT_30582hW1Y/ILT_HomNT.rgb 210 26 /tmp/ILT_30582hW1Y/ILT_T2MJv.rgb 0 26 Error: 48 bit images are not supported Error in /tmp/ILT_30582hW1Y/ILT_JkJX2.rgb.

vfonov commented 9 years ago

Call ILT authors? They are probably not following this issue list.

gdevenyi commented 9 years ago

Technically speaking, I think this may be an minc-toolkit bug, after looking at it. The place_images command in minc-tools does work with ILT.

vfonov commented 9 years ago

I imagine that input for that program is generated by something in ILT which creates 16bit rgb files. I guess the fix will be specifying -depth 8 somewhere inside.

gdevenyi commented 8 years ago

Gone away due to changes?