Weasis Compression - the saga goes on

  • Mr Marcel,


    When I enable compression at lua xml, the images in weasis are loading and next disappear.
    All my images on conquest server are uncompressed.


    I have enabled in dgatesop.lst:
    JPEG2000LosslessOnly 1.2.840.10008.1.2.4.90 transfer LittleEndianExplicit
    JPEG2000 1.2.840.10008.1.2.4.91 transfer LittleEndianExplicit


    I did tests with:
    JPEG2000LosslessOnly 1.2.840.10008.1.2.4.90 transfer LittleEndianExplicit
    JPEG2000 1.2.840.10008.1.2.4.91 transfer LittleEndianExplicit
    and the problem occurs in both cases.


    I also tried change .cq file to include transfersyntax without success. The same problem occurs.


    I enabled compression in weasisseriesxml.lua as:


    Code
    print('Content-Type: application/xml\n')local patid = string.gsub(series2, ':.*$', '')local seriesuid = string.gsub(series2, '^.*:', '')local q = DicomObject:new()q.QueryRetrieveLevel = 'IMAGE'q.PatientID = patidq.SeriesInstanceUID = seriesuidq.SOPInstanceUID = ''q.PatientBirthDate = ''q.PatientName = ''q.StudyInstanceUID = ''q.StudyDescription = ''q.StudyDate = ''q.StudyTime = ''q.SeriesDescription = ''q.SeriesNumber = ''q.Modality = ''q.ImageNumber = ''r = dicomquery(servercommand('get_param:MyACRNema'), 'IMAGE', q)print([[<?xml version="1.0" encoding="utf-8" ?><wado_query xmlns= "http://www.weasis.org/xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" wadoURL="]]..webscriptadress..[[" requireOnlySOPInstanceUID="false" overrideDicomTagsList="0x00000000" > <Patient PatientID="]]..patid..[[" PatientName="]]..r[0].PatientName..[[" PatientBirthDate="]]..r[0].PatientBirthDate..[[" > <Study StudyInstanceUID="]]..r[0].StudyInstanceUID..[[" StudyDescription="]]..r[0].StudyDescription..[[" StudyDate="]]..r[0].StudyDate..[[" StudyTime="]]..r[0].StudyTime..[[" > <Series SeriesInstanceUID="]]..r[0].SeriesInstanceUID..[[" SeriesDescription="]]..r[0].SeriesDescription..[[" SeriesNumber="]]..r[0].SeriesNumber..[[" Modality="]]..r[0].Modality..[[" WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.90"..[[" >]])for i=0, #r-1 do print([[<Instance SOPInstanceUID="]]..r[i].SOPInstanceUID..[[" InstanceNumber="]]..i..[[" />]])endprint([[ </Series> </Study> </Patient></wado_query>]])


    Here is the log from conquest server:

    Code
    [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 20 LO ConquestConsoleComma "get_param:MyACRNema" [CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] [CONQUESTSRV1] UPACS THREAD 2516: STARTED AT: Tue Jan 21 22:15:17 2014[CONQUESTSRV1] A-ASSOCIATE-RQ Packet Dump[CONQUESTSRV1] Calling Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384[CONQUESTSRV1] Number of Proposed Presentation Contexts: 1[CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.2.2.1" 1[CONQUESTSRV1] Server Command := 0020[CONQUESTSRV1] Message ID := 001b[CONQUESTSRV1] 0000,0002 28 UI AffectedSOPClassUID "1.2.840.10008.5.1.4.1.2.2.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 32 [CONQUESTSRV1] 0000,0110 2 US MessageID 27 [CONQUESTSRV1] 0000,0700 2 US Priority 0 [CONQUESTSRV1] 0000,0800 2 US DataSetType 258 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] (StudyRootQuery) search level: IMAGE [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 0008,0018 0 UI SOPInstanceUID (empty)[CONQUESTSRV1] 0008,0020 0 DA StudyDate (empty)[CONQUESTSRV1] 0008,0030 0 TM StudyTime (empty)[CONQUESTSRV1] 0008,0052 6 CS QueryRetrieveLevel "IMAGE " [CONQUESTSRV1] 0008,0060 0 CS Modality (empty)[CONQUESTSRV1] 0008,1030 0 LO StudyDescription (empty)[CONQUESTSRV1] 0008,103e 0 LO SeriesDescription (empty)[CONQUESTSRV1] 0010,0010 0 PN PatientName (empty)[CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 0 UI StudyInstanceUID (empty)[CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 0 IS SeriesNumber (empty)[CONQUESTSRV1] 0020,0013 0 IS ImageNumber (empty)[CONQUESTSRV1] Query On Image[CONQUESTSRV1] Issue Query on Columns: DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Values: DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Query Distinct Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Columns : DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Where : DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Records = 1[CONQUESTSRV1] First record of cleaned response:[CONQUESTSRV1] 0008,0018 52 UI SOPInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732640.2" [CONQUESTSRV1] 0008,0020 8 DA StudyDate "20131223" [CONQUESTSRV1] 0008,0030 14 TM StudyTime "160034.312000 " [CONQUESTSRV1] 0008,0060 2 CS Modality "CR" [CONQUESTSRV1] 0008,1030 14 LO StudyDescription "Coluna lombar " [CONQUESTSRV1] 0008,103e 2 LO SeriesDescription "AP" [CONQUESTSRV1] 0010,0010 14 PN PatientName ".RENATO BASTOS" [CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 52 UI StudyInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821468515.1" [CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 2 IS SeriesNumber "1 " [CONQUESTSRV1] 0020,0013 2 IS ImageNumber "1 " [CONQUESTSRV1] C-Find (StudyRoot) located 1 records[CONQUESTSRV1] UPACS THREAD 2516: ENDED AT: Tue Jan 21 22:15:17 2014[CONQUESTSRV1] UPACS THREAD 2516: TOTAL RUNNING TIME: 0 SECONDS[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 224 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/0,0/0,,application/dicom,1.2.840.10008.1.2.4.90,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 200 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/70,256/256,,image/jpeg,,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Jasper compress started.[CONQUESTSRV1] JPEG2K Lossless[CONQUESTSRV1] , buffered data[CONQUESTSRV1] , planes[CONQUESTSRV1] , H = 1671, W = 1671, Bits = 12 in 16, Frames = 1, [CONQUESTSRV1] color = MONOCHROME2 [CONQUESTSRV1] Jasper compress time 2 seconds.[CONQUESTSRV1] [recompress]: recompressed with mode = jk (strip=0)[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 20 LO ConquestConsoleComma "get_param:MyACRNema" [CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] [CONQUESTSRV1] UPACS THREAD 2520: STARTED AT: Tue Jan 21 22:15:56 2014[CONQUESTSRV1] A-ASSOCIATE-RQ Packet Dump[CONQUESTSRV1] Calling Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Called Application Title : "CONQUESTSRV1 "[CONQUESTSRV1] Application Context : "1.2.840.10008.3.1.1.1", PDU length: 16384[CONQUESTSRV1] Number of Proposed Presentation Contexts: 1[CONQUESTSRV1] Presentation Context 0 "1.2.840.10008.5.1.4.1.2.2.1" 1[CONQUESTSRV1] Server Command := 0020[CONQUESTSRV1] Message ID := 001b[CONQUESTSRV1] 0000,0002 28 UI AffectedSOPClassUID "1.2.840.10008.5.1.4.1.2.2.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 32 [CONQUESTSRV1] 0000,0110 2 US MessageID 27 [CONQUESTSRV1] 0000,0700 2 US Priority 0 [CONQUESTSRV1] 0000,0800 2 US DataSetType 258 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] (StudyRootQuery) search level: IMAGE [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 0008,0018 0 UI SOPInstanceUID (empty)[CONQUESTSRV1] 0008,0020 0 DA StudyDate (empty)[CONQUESTSRV1] 0008,0030 0 TM StudyTime (empty)[CONQUESTSRV1] 0008,0052 6 CS QueryRetrieveLevel "IMAGE " [CONQUESTSRV1] 0008,0060 0 CS Modality (empty)[CONQUESTSRV1] 0008,1030 0 LO StudyDescription (empty)[CONQUESTSRV1] 0008,103e 0 LO SeriesDescription (empty)[CONQUESTSRV1] 0010,0010 0 PN PatientName (empty)[CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 0 UI StudyInstanceUID (empty)[CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 0 IS SeriesNumber (empty)[CONQUESTSRV1] 0020,0013 0 IS ImageNumber (empty)[CONQUESTSRV1] Query On Image[CONQUESTSRV1] Issue Query on Columns: DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Values: DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Query Distinct Tables: DICOMImages, DICOMSeries, DICOMStudies[CONQUESTSRV1] Columns : DICOMImages.SOPInstanc, DICOMImages.ImageNumbe, DICOMSeries.Modality, DICOMSeries.SeriesDesc, DICOMSeries.SeriesInst, DICOMSeries.SeriesNumb, DICOMStudies.StudyDate, DICOMStudies.StudyTime, DICOMStudies.StudyDescr, DICOMStudies.PatientNam, DICOMStudies.PatientID, DICOMStudies.PatientBir, DICOMStudies.StudyInsta[CONQUESTSRV1] Where : DICOMSeries.SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1' and DICOMStudies.PatientID = '184152' and DICOMSeries.StudyInsta = DICOMStudies.StudyInsta and DICOMImages.SeriesInst = DICOMSeries.SeriesInst[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Records = 1[CONQUESTSRV1] First record of cleaned response:[CONQUESTSRV1] 0008,0018 52 UI SOPInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732640.2" [CONQUESTSRV1] 0008,0020 8 DA StudyDate "20131223" [CONQUESTSRV1] 0008,0030 14 TM StudyTime "160034.312000 " [CONQUESTSRV1] 0008,0060 2 CS Modality "CR" [CONQUESTSRV1] 0008,1030 14 LO StudyDescription "Coluna lombar " [CONQUESTSRV1] 0008,103e 2 LO SeriesDescription "AP" [CONQUESTSRV1] 0010,0010 14 PN PatientName ".RENATO BASTOS" [CONQUESTSRV1] 0010,0020 6 LO PatientID "184152" [CONQUESTSRV1] 0010,0030 0 DA PatientBirthDate (empty)[CONQUESTSRV1] 0020,000d 52 UI StudyInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821468515.1" [CONQUESTSRV1] 0020,000e 52 UI SeriesInstanceUID "1.3.46.670589.30.1.6.1.116520970982.1387821732718.1" [CONQUESTSRV1] 0020,0011 2 IS SeriesNumber "1 " [CONQUESTSRV1] 0020,0013 2 IS ImageNumber "1 " [CONQUESTSRV1] C-Find (StudyRoot) located 1 records[CONQUESTSRV1] UPACS THREAD 2520: ENDED AT: Tue Jan 21 22:15:56 2014[CONQUESTSRV1] UPACS THREAD 2520: TOTAL RUNNING TIME: 0 SECONDS[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Connected by address: 020aa8c0[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] Testing transfer: '1.2.840.10008.1.2' against list #0 = '1.2.840.10008.1.2'[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 200 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/70,256/256,,image/jpeg,,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] 0000,0002 18 UI AffectedSOPClassUID "1.2.840.10008.1.1" [CONQUESTSRV1] 0000,0100 2 US CommandField 48 [CONQUESTSRV1] 0000,0110 2 US MessageID 1 [CONQUESTSRV1] 0000,0800 2 US DataSetType 257 [CONQUESTSRV1] 0002,0010 17 UI TransferSyntaxUID "1.2.840.10008.1.2" [CONQUESTSRV1] 9999,0400 224 LO ConquestConsoleComma "wadorequest:1.3.46.670589.30.1.6.1.116520970982.1387821468515.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1\\1.3.46.670589.30.1.6.1.116520970982.1387821732640.2,0/0/0/0,0/0,,application/dicom,1.2.840.10008.1.2.4.90,,," [CONQUESTSRV1] Query Tables: DICOMImages[CONQUESTSRV1] Columns : ObjectFile, DeviceName[CONQUESTSRV1] Where : SOPInstanc = '1.3.46.670589.30.1.6.1.116520970982.1387821732640.2' AND SeriesInst = '1.3.46.670589.30.1.6.1.116520970982.1387821732718.1'[CONQUESTSRV1] Order : (null)[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Locating file:MAG0 184152\1.3.46.670589.30.1.6.1.116520970982.1387821732718.1_0001_000001_138782377104cd.dcm[CONQUESTSRV1] Jasper compress started.[CONQUESTSRV1] JPEG2K Lossless[CONQUESTSRV1] , buffered data[CONQUESTSRV1] , planes[CONQUESTSRV1] , H = 1671, W = 1671, Bits = 12 in 16, Frames = 1, [CONQUESTSRV1] color = MONOCHROME2 [CONQUESTSRV1] Jasper compress time 2 seconds.[CONQUESTSRV1] [recompress]: recompressed with mode = jk (strip=0)


    and here is the log of java console:


    Any help will be appreciated.


    Thanks in advance,


    Luiz

  • Hi Luiz, thanks for sharing this,


    I had trouble even enabling compression for weasis due to lack of documentation. Did you try any other compression modes expect jpeg2000?


    I will try to reproduce the issue.


    Marcel

  • Marcel,


    Yes,


    I also used ..[[" WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.91"..[[" WadoCompressionRate="]].."75"..[[" >
    The problem is the same.


    I generate this sample with altova from weasis xsd schema. Does it can help you?:



    Luiz

  • Hi,


    If I type into my browser's address bar, e.g., :


    http://127.0.0.1/cgi-bin/dgate…ax=1.2.840.10008.1.2.4.57


    I.e., a proper WADO request with "&transferSyntax=1.2.840.10008.1.2.4.57" appended, the browser saves a file called dgate.exe, which is in reality a proper jpg compressed image. Can you try to do this with your data and see if such a file loads directly into weasis after renaming?


    In my case I can load it into Weasis as file allright. I have not yet tried to do this directly over WADO due to lack of time.


    EDIT: you are on version 1.4.17C ?


    Thanks,


    Marcel

  • Mr Marcel,


    I rename it to dgate.dcm and weasis is unable to open it. Nothing is showing in weasis.
    I tried open other dcm from conquest install and it opens ok, but the dgate.dcm doesn´t shows in weasis.


    I think it is corrupted.


    Regards,
    Luiz

  • Mr Marcel,
    With "&transferSyntax=1.2.840.10008.1.2.4.57", I received a prompt to download dgate.exe
    After the download, I rename it to dgate.dcm and Weasis was able to open it correctly.


    >> Does weasis even support jpeg2000 out of the box?
    I dont´know, But at http://www.dcm4che.org/conflue…lay/WEA/Dicom+Conformance we have for Weasis Dicom TransferSyntax:


    At http://forums.dcm4che.org/jive…pa?threadID=3106&tstart=0 it seems other user have success with jpeg2000 lossless


    Regards,
    Luiz

  • Hi Luiz,


    using my newest weasis cq files and you WeasisSeriesXML.lua file weasis works great and conquest compresses MR data just fine.....


    NOTE: I do use DGATE (1.4.17c, build Thu Nov 07 21:08:52 2013, bits 64)


    Setting compression to 1.2.840.10008.1.2.4.57 shows:


    [CONQUESTSRV1] [recompress]: recompressed with mode = j2 (strip=0)
    [CONQUESTSRV1] [recompress]: recompressed with mode = j2 (strip=0)


    Setting it to 1.2.840.10008.1.2.4.90 shows:


    [CONQUESTSRV1] [recompress]: recompressed with mode = jk (strip=0)
    [CONQUESTSRV1] [recompress]: recompressed with mode = jk (strip=0)


    Not sure what goes wrong with you.


    Marcel

  • Hi, Marcel,.


    I am using 1.4.17c with dgate 32 bits.
    If you look at my log of first post of this topic we can see my conquest server seems compress the file as you posted.



    The problem is the image disapearing in Weasis.
    Weasis load the image with progress percent. I can see the image on Weasis, but next the image disappears. Itested with 1.2.840.10008.1.2.4.57 and the same problem occurs.


    I altered only weasisseriesxml.lua to include WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.57" or WadoTransferSyntaxUID="]].."1.2.840.10008.1.2.4.90"
    I don´t modify .cq files. I guess I can´t alter .cq to include transfersyntax. I can see on my log posted above in my first post of this topic that conquest server seems works ok.


    But in both cases, I have java.io.EOFException in java log of weasis.

    My Weasisserisxml.lua


    If you see the log of my first post of this topic, Conquest seems work well, but there is an Exception on log of Java console.
    I can see Weasis loading the image(It apperas onscreen of weasis) and after the loading of the image in the Weasis, it disappears.


    NOTE: If I remove WadoTransferSyntaxUID from lua script all works well.


    Do you agree I send you privatelly the main page link of the web server and you check by self, the problem of the image disapearing?
    If yes, please send me your private e-mail.
    My email is xxxxxx
    Regards,
    Luiz

  • Hi Luiz,


    the problem is in the presence of private sequence 2001,9000 in the images. If I delete this using:


    importConverter0 = delete 2001,9000


    before I transmit the images to the DICOM server, the image shows allright in weasis with any compression. Somehow the send to weasis is affected by this sequence. The weasis log also shows it stop somewhere 3 levels inside a sequence.


    Not sure yet what the solution is.


    Marcel

  • Hi Luiz,


    having an outdated dgate.dic in your server corrupted the data you get in. After you replaced it some things started to work better. Then Philips uses a private sequence that is still not recognized by conquest (it is not in the dictionary) and that is labeled as type 'UN', when the file is sent in any compressed syntax such as jpeg or jpeg2000. The type labels are NOT sent when you ask for the uncompressed images. Weasis does not like the type 'UN' on sequences, therefore it does not load the images when sent compressed. The solution is:


    1) Make sure you always have the latest dgate.dic


    2) Add this line to it in the correct place; after (2001,10F1):


    (2001,9000) VERS="5" VR="SQ" VM="1-n" Keyword="PhilipsJunkSequence" Name="PhilipsJunkSequence"


    3) Restart the server.


    Then Weasis starts to work with all compressions!


    Marcel

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!