{ ImageType.containsIgnoreCase("SECONDARY") *
Modality.containsIgnoreCase("NM") *
Manufacturer.containsIgnoreCase("GE MEDICAL") *
Rows.equals("862") }
(0,0,1132,60)
The script does not remove anything.
I tried similar scripts for other types of images and manufactures, but could never have any pixels removed from 'secondary' images.
Is there a way to do it or some of the burned-in information cannot be removed from images?script="scripts/dicom-decompressor.script"
Is there an example of decompressor script that I can use?I get an error when run with nothing in the script.
ERROR [DicomObject]
java.lang.Exception: Failure in parsing the script.
at org.rsna.ctp.objects.DicomObject.parse(DicomObject.java:2530)
at org.rsna.ctp.objects.DicomObject.expression(DicomObject.java:2500)
at org.rsna.ctp.objects.DicomObject.matches(DicomObject.java:2460)
at org.rsna.ctp.stdstages.DicomDecompressor.process(DicomDecompressor.java:66)
at org.rsna.ctp.pipeline.Pipeline.processObjects(Pipeline.java:220)
at org.rsna.ctp.pipeline.Pipeline.run(Pipeline.java:181)
Anna:If I understand correctly, the script doesn't blank the top part of the image.If so, then the pixel anonymizer isn't matching the image to the signature script. Either that, or the image is compressed and the anonymizer is skipping it.Can you send me (john...@dls.net) an image? I can dump the binary and see what's in it.
If you want to see what the anonymizer is matching, you can set the DicomPixelAnonymizer stage's log attribute to yes. That will force it to log the signature that it matches for the image.If you have the DicomEditor application (http://mirc.rsna.org/download/DicomEditor-installer.jar), it will list the elements and you can see if the signature script really matches the image.JPFrom: AnnaSent: Thursday, August 02, 2018 3:05 PMSubject: [MIRC CTP/TFS User Group] DicomPixelAnonymizer
I added a few lines to DicomPixelAnonymizer.script to remove PHI box in a top part of the frame on bone scan image:--{ ImageType.containsIgnoreCase("SECONDARY") *
Modality.containsIgnoreCase("NM") *
Manufacturer.containsIgnoreCase("GE MEDICAL") *
Rows.equals("862") }
(0,0,1132,60)The script does not remove anything.I tried similar scripts for other types of images and manufactures, but could never have any pixels removed from 'secondary' images.Is there a way to do it or some of the burned-in information cannot be removed from images?
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user-group+unsub...@googlegroups.com.
To post to this group, send email to rsnas-ctpmirc-user-group@googlegroups.com.
Visit this group at https://groups.google.com/group/rsnas-ctpmirc-user-group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user-group+unsub...@googlegroups.com.
To post to this group, send email to rsnas-ctpmirc-user-group@googlegroups.com.
Anna:
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user-group+unsubscr...@googlegroups.com.
To post to this group, send email to rsnas-ctpmirc-user-group@googlegroups.com.
Visit this group at https://groups.google.com/group/rsnas-ctpmirc-user-group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user-group+unsubscr...@googlegroups.com.
To post to this group, send email to rsnas-ctpmirc-user-group@googlegroups.com.
Visit this group at https://groups.google.com/group/rsnas-ctpmirc-user-group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user-group+unsub...@googlegroups.com.
To post to this group, send email to rsnas-ctpmirc-user-group@googlegroups.com.
Visit this group at https://groups.google.com/group/rsnas-ctpmirc-user-group.
For more options, visit https://groups.google.com/d/optout.
21:14:04 INFO [DicomPixelAnonymizer] DicomPixelAnonymizer: DicomObject 1.3.12.2.1107.5.6.1.12345.30000017101708323030300000011 matched:
Modality.equals("NM") 

SCREENCAPTURE
{ Modality.equals("NM") }
(60, 60, 500, 300)
<Pipeline name="Dicom Pixel Anonymizer Pipeline">
<DirectoryImportService
class="org.rsna.ctp.stdstages.DirectoryImportService"
id="stage ID"
import="roots/directory-import"
name="DirectoryImportService"
port="1104"
quarantine="quarantines/directory-service"
root="roots/directory-service"/>
<DicomPixelAnonymizer
class="org.rsna.ctp.stdstages.DicomPixelAnonymizer"
id="stage ID"
log="yes"
name="DicomPixelAnonymizer"
quarantine="quarantines/dicom-pixel-anonymizer"
root="roots/dicompixel-service"
script="scripts/DicomPixelAnonymizer.script"
test="yes"/>
<DicomAnonymizer
class="org.rsna.ctp.stdstages.DicomAnonymizer"
log="yes"
name="DicomAnonymizer"
quarantine="quarantines/dicom-anonymizer"
root="roots/dicom-anonymizer"
script="scripts/da.script"/>
<FileStorageService
class="org.rsna.ctp.stdstages.FileStorageService"
log="yes"
name="FileStorageService"
quarantine="quarantines/storage-service"
returnStoredFile="no"
root="roots/storage-service"/>
</Pipeline>
</Configuration>
11:46:56 INFO [HttpServer] HttpServer started on port 1080 [maxThreads=4]
11:46:56 INFO [FileStorageService] FileStorageService root: /Users/caidm05/JavaPrograms/CTP/roots/storage-service
11:47:17 INFO [DicomPixelAnonymizer] DicomPixelAnonymizer: DicomObject 1.2.840.113619.2.170.1.2.0.31072018162813984.16517 matched:
Modality.equals("NM")
11:47:17 INFO [DicomPixelAnonymizer] DicomPixelAnonymizer: DicomObject 1.2.840.113619.2.281.31108.160874834.1533069147.288437000 matched:
Modality.equals("NM")
11:47:17 INFO [DicomPixelAnonymizer] DicomPixelAnonymizer: DicomObject 1.2.840.113619.2.170.1.2.0.31072018165959359.22755 matched:
Modality.equals("NM")
11:47:17 INFO [DicomPixelAnonymizer] DicomPixelAnonymizer: DicomObject 1.2.840.113619.2.170.1.2.0.31072018170436171.23666 matched:
Modality.equals("NM")
11:47:17 INFO [DicomPixelAnonymizer] DicomPixelAnonymizer: DicomObject 1.2.840.113619.2.170.1.2.0.31072018162813906.16514 matched:
Modality.equals("NM")
11:47:17 INFO [DicomPixelAnonymizer] DicomPixelAnonymizer: DicomObject 1.2.840.113619.2.170.1.2.0.31072018165441078.21710 matched:
Modality.equals("NM") To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user-group+unsub...@googlegroups.com.
To post to this group, send email to rsnas-ctpmirc-user-group@googlegroups.com.
Visit this group at https://groups.google.com/group/rsnas-ctpmirc-user-group.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user-group+unsub...@googlegroups.com.