README.md 836 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
18
19
20
21
python sliceImage.py ./example_images/GeoEye_After011310.jpg GeoEye_Slice 512 512 ./example_images/
```

## Example run result
## Original Image
josh's avatar
josh committed
22
![](example_images/GeoEye_Slice-0-0.jpg)
josh's avatar
josh committed
23

josh's avatar
josh committed
24
25
26
27
28
29
30
31
32
33
34
## Slice 1
![](example_images/GeoEye_Slice-0-0.jpg)

## Slice 2
![](example_images/GeoEye_Slice-0-512.jpg)

## Slice 3
![](example_images/GeoEye_Slice-512-0.jpg)

## Slice 4
![](example_images/GeoEye_Slice-512-512.jpg)