MCPcopy Create free account
hub / github.com/CRVI/OpenCLIPP / Transpose

Method Transpose

C++/programs/Transform.cpp:69–86  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void Transform::Transpose(Image& Source, Image& Dest)
70{
71 if (Dest.Width() < Source.Height() || Dest.Height() < Source.Width())
72 throw cl::Error(CL_INVALID_IMAGE_SIZE, "Destination image too small to receive Transform::Transpose");
73
74 if (!SameType(Source, Dest))
75 throw cl::Error(CL_INVALID_VALUE, "Different image types used");
76
77 if (IsFlushImage(Source))
78 {
79 Kernel_Local(transpose_flush, Source, Dest, Source.Step(), Dest.Step(), Source.Width(), Source.Height());
80 }
81 else
82 {
83 Kernel_Local(transpose, Source, Dest, Source.Step(), Dest.Step(), Source.Width(), Source.Height());
84 }
85
86}
87
88void Transform::Rotate(Image& Source, Image& Dest,
89 double Angle, double XShift, double YShift, EInterpolationType Interpolation)

Callers

nothing calls this directly

Calls 5

SameTypeFunction · 0.85
IsFlushImageFunction · 0.85
WidthMethod · 0.80
HeightMethod · 0.80
StepMethod · 0.80

Tested by

no test coverage detected