README.md 878 Bytes
Newer Older
Ortner, Joshua's avatar
Ortner, Joshua committed
1
2
# ai4hdr_backend

3
4
5
6
7
8
9
10
11
12
13
14
15
16
## "sliceImage.py" program:
Slices an image into even sized tiles. 
Note: if the slice size doesn't fit evenly into the size of 
      the original image, pixels will be lost.

## Command line arguments
 - arg1: name of image file used for slicing
 - arg2: file name used as base for all slices
 - arg3: width of new slices
 - arg4: height of new slices
 - arg5: directory to save slices 

## Example run
```bash
josh's avatar
josh committed
17
python sliceImage.py ./sliceImage_ex/GeoEye_After011310.jpg GeoEye_Slice 512 512 ./sliceImage_ex/
josh's avatar
josh committed
18
19
20
```

## Example run result
josh's avatar
readme    
josh committed
21
## Original Image: 1180x1180
josh's avatar
josh committed
22
![](sliceImage_ex/GeoEye_After011310.jpg)
josh's avatar
josh committed
23

josh's avatar
readme    
josh committed
24
## Slice 1: 512x512
josh's avatar
josh committed
25
![](sliceImage_ex/GeoEye_Slice-0-0.jpg)
josh's avatar
josh committed
26

josh's avatar
readme    
josh committed
27
## Slice 2: 512x512
josh's avatar
josh committed
28
![](sliceImage_ex/GeoEye_Slice-0-512.jpg)
josh's avatar
josh committed
29

josh's avatar
readme    
josh committed
30
## Slice 3: 512x512
josh's avatar
josh committed
31
![](sliceImage_ex/GeoEye_Slice-512-0.jpg)
josh's avatar
josh committed
32

josh's avatar
readme    
josh committed
33
## Slice 4: 512x512
josh's avatar
josh committed
34
![](sliceImage_ex/GeoEye_Slice-512-512.jpg)