#include <img.h>Go to the source code of this file.
Functions | |
| int | img2cube (IMG *img1, int dim, IMG *img2) |
| void | imgScale (IMG *src, IMG *targ, float zoom, int method) |
| void | integerScale (int frame, float ***src, float **targ, int width, int height, int zoom) |
| int img2cube | ( | IMG * | img1, |
| int | dim, | ||
| IMG * | img2 | ||
| ) |
Resample image to cubic image volume, where all three dimensions are the the same, with cubic voxel sizes. Note that some smoothing occurs in the process, therefore the use of this function should be limited to illustrations of image data.
| img1 | Pointer to IMG to be resliced; this image is not modified. |
| dim | New dimension; enter 0 to use the largest dimension in image |
| img2 | Pointer to initiated IMG where resliced data will be stored |
Definition at line 53 of file imgtransform.c.
| void imgScale | ( | IMG * | src, |
| IMG * | targ, | ||
| float | zoom, | ||
| int | method | ||
| ) |
Image scaling using the defined method.
| src | Source image to be scaled |
| targ | Scaled image; must be allocated to the size of resulting image |
| zoom | Scaling factor |
| method | Method code number |
Definition at line 167 of file imgtransform.c.
References integerScale().
Referenced by test_imgTransform().
| void integerScale | ( | int | frame, |
| float *** | src, | ||
| float ** | targ, | ||
| int | width, | ||
| int | height, | ||
| int | zoom | ||
| ) |
Simple integer scaling function using pixel duplication.
| frame | Serial number of the frame to be scaled |
| src | Source data in three dimensional array: srcp[y][x][frame] |
| targ | Target data array: targ[y][x] |
| width | Width of the source data matrix |
| height | Height of the source data matrix |
| zoom | Scaling factor |
Definition at line 200 of file imgtransform.c.
Referenced by imgScale().
1.8.0