annotate Database/Series/Generate.sh @ 735:be8f174d3c9d find-refactoring tip

tools/find: Limit and Since are now forbidden when filtering on DICOM tags that are not stored in DB
author Alain Mazy <am@orthanc.team>
date Thu, 24 Oct 2024 15:08:59 +0200
parents a05cc24f84e5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
211
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
1 #!/bin/bash
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
2
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
3 set -e
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
4
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
5 convert -quality 90 -resize 128x128 ../Lena.png /tmp/Lena.jpg
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
6
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
7 function Generate() {
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
8 echo $1
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
9 img2dcm /tmp/Lena.jpg Lena-$1.dcm \
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
10 -k "ImagesInAcquisition=2" \
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
11 -k "NumberOfTemporalPositions=2" \
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
12 -k "InstanceNumber=$1" \
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
13 -k "StudyInstanceUID=1.2.840.113619.2.176.2025.1499492.7391.1171285944.390" \
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
14 -k "SeriesInstanceUID=1.2.840.113619.2.176.2025.1499492.7391.1171285944.394"
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
15 }
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
16
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
17 Generate 1
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
18 Generate 2
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
19 Generate 3
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
20 Generate 4
a05cc24f84e5 test_series_status
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
diff changeset
21 Generate 5