README.md 629 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
22
23
24
python sliceImage.py ./example_images/GeoEye_After011310.jpg GeoEye_Slice 512 512 ./example_images/
```

## Example run result
## Original Image
![](example_images/GeoEye_After011310.jpg)

## Slices