251
|
1 Create a small image pyramid
|
|
2 ----------------------------
|
|
3
|
|
4 ./OrthancWSIDicomizer --pyramid=1 --smooth=1 --tile-width=64 --tile-height=64 --compression=jpeg ~/Subversion/orthanc-tests/Database/Lena.png
|
|
5 ./OrthancWSIDicomToTiff 93463fca-b7a90ce3-e77d1d29-bd1c94f9-5aa91536 LenaColorJpegYCbCr.tiff
|
|
6
|
|
7
|
|
8
|
|
9 ./OrthancWSIDicomizer --pyramid=1 --smooth=1 --tile-width=64 --tile-height=64 --compression=jpeg ~/Subversion/orthanc-tests/Database/LenaGrayscale.png
|
|
10 ./OrthancWSIDicomToTiff 93463fca-b7a90ce3-e77d1d29-bd1c94f9-5aa91536 LenaGrayscaleJpeg.tiff
|
|
11
|
|
12
|
|
13
|
|
14
|
|
15 Manually change photometric interpretation
|
|
16 ------------------------------------------
|
|
17
|
|
18 cp LenaColorJpegYCbCr.tiff LenaColorJpegRGB.tiff
|
|
19 tiffset -d 0 -s 262 2 LenaColorJpegRGB.tiff
|
|
20 tiffset -d 1 -s 262 2 LenaColorJpegRGB.tiff
|
|
21 tiffset -d 2 -s 262 2 LenaColorJpegRGB.tiff
|
|
22 tiffset -d 3 -s 262 2 LenaColorJpegRGB.tiff
|
|
23 tiffinfo LenaColorJpegRGB.tiff | grep -aE 'Directory|Photometric'
|
366
|
24
|
|
25
|
|
26
|
|
27 Other
|
|
28 -----
|
|
29
|
|
30 montage ../Lena.png ../Lena.png ../Lena.png ../Lena.png -geometry +0+0 Lena2x2.png
|