Go to the source code of this file.
◆ GLUE_BLOCK_CASE
| #define GLUE_BLOCK_CASE |
( |
|
FORMAT, |
|
|
|
T |
|
) |
| |
Value:case FORMAT: { \
vil_image_view<T>* output_image = \
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; \
}
Concrete view of image data of type T held in memory.
◆ TRIM_BORDER_BLOCK_CASE
| #define TRIM_BORDER_BLOCK_CASE |
( |
|
FORMAT, |
|
|
|
T |
|
) |
| |
Value:case FORMAT: { \
*croppedBlock =
vil_crop(currBlock, bi0, bin-bi0+1, bj0, bjn-bj0+1);\
blocks[bi][bj] = croppedBlock;\
} break
Concrete view of image data of type T held in memory.
vil_image_view< T > vil_crop(const vil_image_view< T > &im, unsigned i0, unsigned n_i, unsigned j0, unsigned n_j)
Create a view which is a cropped version of src.
◆ blocked_image_resource()