36 int width = input->
width();
37 int height = input->
height();
40 for (
int y = 0;
y < height;
y++) {
41 for (
int x = 0;
x < width;
x++) {
43 (
imRef(input,
x,
y).r * RED_WEIGHT +
44 imRef(input,
x,
y).g * GREEN_WEIGHT +
52 int width = input->
width();
53 int height = input->
height();
56 for (
int y = 0;
y < height;
y++) {
57 for (
int x = 0;
x < width;
x++) {
67 int width = input->
width();
68 int height = input->
height();
71 for (
int y = 0;
y < height;
y++) {
72 for (
int x = 0;
x < width;
x++) {
80 int width = input->
width();
81 int height = input->
height();
84 for (
int y = 0;
y < height;
y++) {
85 for (
int x = 0;
x < width;
x++) {
93 float min,
float max) {
94 int width = input->
width();
95 int height = input->
height();
101 float scale = UCHAR_MAX / (max - min);
102 for (
int y = 0;
y < height;
y++) {
103 for (
int x = 0;
x < width;
x++) {
118 int width = input->
width();
119 int height = input->
height();
122 for (
int y = 0;
y < height;
y++) {
123 for (
int x = 0;
x < width;
x++) {
131 int width = input->
width();
132 int height = input->
height();
138 float scale = UCHAR_MAX / (float)(max - min);
139 for (
int y = 0;
y < height;
y++) {
140 for (
int x = 0;
x < width;
x++) {
155 short min,
short max) {
156 int width = input->
width();
157 int height = input->
height();
163 float scale = UCHAR_MAX / (float)(max - min);
164 for (
int y = 0;
y < height;
y++) {
165 for (
int x = 0;
x < width;
x++) {
TFSIMD_FORCE_INLINE const tfScalar & y() const
TFSIMD_FORCE_INLINE const tfScalar & x() const