# How do you convert VR=DS to VR=FD using matlab - DICOM

This is a discussion on How do you convert VR=DS to VR=FD using matlab - DICOM ; 'lo, I was running some regression tests, and realized one DICOM file was giving me some issues: .... (0002,0012) UI [1.3.6.1.4.1.9590.100.1.0.100.4.0] # 32, 1 ImplementationClassUID (0002,0013) SH [MATLAB IPT 4.0] # 14, 1 ImplementationVersionName (0002,0016) AE [CARDIAC] # 8, 1 ...

# Thread: How do you convert VR=DS to VR=FD using matlab

1. ## How do you convert VR=DS to VR=FD using matlab

'lo,

I was running some regression tests, and realized one DICOM file was
giving me some issues:

....
(0002,0012) UI [1.3.6.1.4.1.9590.100.1.0.100.4.0] # 32, 1
ImplementationClassUID
(0002,0013) SH [MATLAB IPT 4.0] # 14, 1
ImplementationVersionName
(0002,0016) AE [CARDIAC] # 8, 1
SourceApplicationEntityTitle
....

I could only print ELSCINT1 VR=DS attributes if I changed the VR into
FD:

....
(01f1,1005) ?? (FD) 180 #
8,1 Reconstruction Arc
(01f1,1007) ?? (FD) 19 #
8,1 Table Velocity
(01f1,1008) ?? (FD) 115.84 #
8,1 Acquisition Length
(01f1,100c) ?? (FD) -0.169956\0.0850279 #
16,2 Scanner Relative Center
(01f1,100d) ?? (FD) 0 #
8,1 Rotation Angle
(01f1,1026) ?? (FD) 0.2 #
8,1 Pitch
(01f1,1027) ?? (FD) 0.4 #
8,1 Rotation Time
(01f1,1045) ?? (FD) 69 #
8,1 ?
(01f1,1049) ?? (FD) 1050 #
8,1 ?
....

I would bet there is subtle bug when readind VR=DS the output file
written is being written as VR=FD

If anyone has access to matlab + the Image Processing Toolbox with a
version higher than 4.0 we could check if the bug is still present,
anyone interested, please drop me an email.

Thanks,
-Mathieu

2. ## Re: How do you convert VR=DS to VR=FD using matlab

On Aug 14, 3:07 pm, Mathieu Malaterre
wrote:
> 'lo,
>
> I was running some regression tests, and realized one DICOM file was
> giving me some issues:
>
> ...
> (0002,0012) UI [1.3.6.1.4.1.9590.100.1.0.100.4.0] # 32, 1
> ImplementationClassUID
> (0002,0013) SH [MATLAB IPT 4.0] # 14, 1
> ImplementationVersionName
> (0002,0016) AE [CARDIAC] # 8, 1
> SourceApplicationEntityTitle
> ...
>
> I could only print ELSCINT1 VR=DS attributes if I changed the VR into
> FD:
>
> ...
> (01f1,1005) ?? (FD) 180 #
> 8,1 Reconstruction Arc
> (01f1,1007) ?? (FD) 19 #
> 8,1 Table Velocity
> (01f1,1008) ?? (FD) 115.84 #
> 8,1 Acquisition Length
> (01f1,100c) ?? (FD) -0.169956\0.0850279 #
> 16,2 Scanner Relative Center
> (01f1,100d) ?? (FD) 0 #
> 8,1 Rotation Angle
> (01f1,1026) ?? (FD) 0.2 #
> 8,1 Pitch
> (01f1,1027) ?? (FD) 0.4 #
> 8,1 Rotation Time
> (01f1,1045) ?? (FD) 69 #
> 8,1 ?
> (01f1,1049) ?? (FD) 1050 #
> 8,1 ?
> ...
>
> I would bet there is subtle bug when readind VR=DS the output file
> written is being written as VR=FD
>
> If anyone has access to matlab + the Image Processing Toolbox with a
> version higher than 4.0 we could check if the bug is still present,
> anyone interested, please drop me an email.

Just FYI, this is *not* an issue with MATLAB at all, but rather a bug
in the Brillliance CT version V2.3 from Philips.

-Mathieu