#include "HxTranspose.h"
#include "HxTagList.h"
#include "HxClassName.h"
#include "HxCategories.h"
#include "HxImgFtorDiy.h"
#include "HxIncludedSigs.h"
Namespaces | |
namespace | HxInstDiyTranspose_c |
Compounds | |
class | HxDiyTranspose |
Functor for transpose. More... | |
class | HxInstDiyTranspose |
Instantiator for DIY operation with transpose. More... | |
Functions | |
template<class DstDataPtrType, class SrcDataPtrType> void | HxTranspose_Line (DstDataPtrType dstPtr, SrcDataPtrType srcPtr, int nPix) |
Transpose one row of pixels. More... | |
HxImageRep | HxTranspose (HxImageRep im) |
Transpose. More... |
|
Transpose one row of pixels.
00044 { 00045 while (--nPix >= 0) { 00046 dstPtr.write(srcPtr.readIncX()); 00047 dstPtr.incY(); 00048 } 00049 } |
|
Transpose. Implementation specifics :
00111 { 00112 HxSizes srcSizes = im.sizes(); 00113 HxSizes resultSizes = srcSizes; 00114 00115 switch (im.dimensionality()) 00116 { 00117 case 1 : 00118 break; 00119 case 2 : 00120 resultSizes = HxSizes(srcSizes.y(), srcSizes.x(), 1); 00121 break; 00122 case 3 : 00123 resultSizes = HxSizes(srcSizes.y(), srcSizes.z(), srcSizes.x()); 00124 break; 00125 } 00126 00127 HxTagList tags; 00128 HxAddTag(tags, "resultSizes", resultSizes); 00129 00130 return im.diyOp("transpose", tags); 00131 } |