Go to the source code of this file.
Define Documentation
#define GLUE_BLOCK_CASE |
( |
|
FORMAT, |
|
|
|
T |
|
) |
| |
Value:case FORMAT: { \
vil_image_view<T>* output_image = \
new vil_image_view<T>(output_width, output_height, 1, nplanes()); \
for (unsigned int bi = 0 ; bi < blocks.size() ; bi++) \
{ \
for (unsigned int bj = 0 ; bj < blocks[bi].size() ; bj++)\
{ \
vil_copy_to_window(static_cast<vil_image_view<T>&>(*blocks[bi][bj]), *output_image, curr_i, curr_j); \
curr_j += blocks[bi][bj]->nj(); \
} \
curr_j = 0; \
curr_i += blocks[bi][0]->ni();\
} \
result = output_image; \
return result; \
}
#define TRIM_BORDER_BLOCK_CASE |
( |
|
FORMAT, |
|
|
|
T |
|
) |
| |
Value:case FORMAT: { \
vil_image_view< T > currBlock = static_cast<vil_image_view< T >&>(*blocks[bi][bj]);\
vil_image_view< T >* croppedBlock = new vil_image_view< T >();\
*croppedBlock = vil_crop(currBlock, bi0, bin-bi0+1, bj0, bjn-bj0+1);\
blocks[bi][bj] = croppedBlock;\
} break
Function Documentation