Segmented Palette Color Lookup Table Data - DICOM

This is a discussion on Segmented Palette Color Lookup Table Data - DICOM ; Hello! members, I am a newbie of this group from Japan. Now we have a problem about Segmented Palette Color Lookup Table Data referred to C.7.9.2 of PS3.3. We are now using a specific toolkit, which doesn’t support Segmented Palette ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: Segmented Palette Color Lookup Table Data

  1. Segmented Palette Color Lookup Table Data

    Hello! members,

    I am a newbie of this group from Japan.
    Now we have a problem about Segmented Palette Color Lookup Table Data
    referred to C.7.9.2 of PS3.3.
    We are now using a specific toolkit, which doesn’t support Segmented
    Palette Color Lookup Table Data.
    Then, we implemented the routine from other free source.
    But, we are not sure if the transformed table data is correct.

    Sample data of Sint16 is as follows;
    (0028,1221)-(OW) : Segmented Red Palette Color Lo: Multiple values :
    0 : 2 : 0 : 18504 : 1 : 6 : -22360 : 0 : 25 : -19276 : -16192 :
    -15164 : -13108 : -12080 : -11052 : -10024 : -10024 : -8996 : -7968 :
    -7968 : -6940 : -6940 : -6940 : -5912 : -5912 : -5912 : -5912 :
    -4884 : -4884 : -4884 : -4884 : -3856 : -3856 : 0 : 1 : 14 : 0 …

    Transformed table data is as follows;
    0 : 18504 : 18504 : 22616 : 26728 : 30840 : 34952 : 39064 : 46260 :
    49344 : 50372 : 52428 : 53456 : 54484 : 55512 : 55512 : 56540 :
    57568 : 57568 : 58596 : 58596 : 58596 : 59624 : 59624 : 59624 :
    59624 : 60652 : 60652 : 60652 : 60652 : 61680 : 61680 : 0 : 0 : 0 :
    0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 : 0 …

    In my opinion, the Discrete Segment Type whose opcode is 0 is correct,
    but the Linear Segment Type whose opcode is 1 is somewhat wrong.
    According to the specification of C.7.9.2 of PS3.3, the values of
    Linear Segment Type has to be linear increment values from the last
    value of the previous segment to the last value of its segment, but
    the segment 1 is not so.

    I think the correct values of the segment 1 are as follows;
    22616 : 26728 : 30840 : 34952 : 39064 : 43176

    What do you think of it?
    Please tell me your opinion.

    Thank you!

    Maty

  2. Re: Segmented Palette Color Lookup Table Data

    Maty-san

    Your sample data could be rewritten in hex:
    (0028,1221)-(OW) : Segmented Red Palette Color
    0 : 2 : 0000 : 4848 :
    1 : 6 : A8A8 :
    0 : 25 : B4B4 : C0C0 : C4C4 : CCCC : D0D0 : D4D4 : D8D8 : D8D8 :
    DCDC : E0E0 :
    E0E0 : E4E4 : E4E4 : E4E4 : E8E8 : E8E8 : E8E8 : E8E8 :
    ECEC : ECEC :
    ECEC : ECEC : F0F0 : F0F0 : 0000 :
    1 : 14 : 0 …

    Then you will get an interpolated hex table as follows:
    Descrete 0000 : 4848 :
    Linear 5858 : 6868 : 7878 : 8888 : 9898 : A8A8 :
    Descrete B4B4 : C0C0 : C4C4 : CCCC : D0D0 : D4D4 : D8D8 : D8D8 :
    DCDC : E0E0 :
    E0E0 : E4E4 : E4E4 : E4E4 : E8E8 : E8E8 : E8E8 : E8E8 :
    ECEC : ECEC :
    ECEC : ECEC : F0F0 : F0F0 : 0000 :

    This would be equivalent to your expectation:
    > 22616 : 26728 : 30840 : 34952 : 39064 : 43176


    Shinya

  3. Re: Segmented Palette Color Lookup Table Data

    On Sep 23, 1:12*pm, Shinya wrote:
    > Maty-san
    >
    > Your sample data could be rewritten in hex:
    > (0028,1221)-(OW) : Segmented Red Palette Color
    > *0 : *2 : 0000 : 4848 :
    > *1 : *6 : A8A8 :
    > *0 : 25 : B4B4 : C0C0 : C4C4 : CCCC : D0D0 : D4D4 : D8D8 : D8D8 :
    > DCDC : E0E0 :
    > * * * * * E0E0 : E4E4 : E4E4 : E4E4 : E8E8 : E8E8 : E8E8 : E8E8:
    > ECEC : ECEC :
    > * * * * * ECEC : ECEC : F0F0 : F0F0 : 0000 :
    > *1 : 14 : 0 …
    >
    > Then you will get an interpolated hex table as follows:
    > Descrete *0000 : 4848 :
    > Linear * *5858 : 6868 : 7878 : 8888 : 9898 : A8A8 :
    > Descrete *B4B4 : C0C0 : C4C4 : CCCC : D0D0 : D4D4 : D8D8 : D8D8 :
    > DCDC : E0E0 :
    > * * * * * E0E0 : E4E4 : E4E4 : E4E4 : E8E8 : E8E8 : E8E8 : E8E8:
    > ECEC : ECEC :
    > * * * * * ECEC : ECEC : F0F0 : F0F0 : 0000 :
    >
    > This would be equivalent to your expectation:
    >
    > > 22616 : 26728 : 30840 : 34952 : 39064 : 43176

    >
    > Shinya


    Hello, Shinya-san,

    Thank you for your reply.
    I have so appreciated that you interpreted the previous problem by
    yourself and gave us your correct opinion.
    It is very helpful us to develop high quality viewer.

    Thanks!

    Maty

+ Reply to Thread