|
@@ -255,7 +255,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
want *image.NRGBA
|
|
|
}{
|
|
|
{
|
|
|
- "AdjustHue 3x3 10",
|
|
|
+ "AdjustHue 3x3 -10",
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(-1, -1, 2, 2),
|
|
|
Stride: 3 * 4,
|
|
@@ -265,7 +265,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
0x00, 0x00, 0x00, 0xff, 0x33, 0x33, 0x33, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
|
},
|
|
|
},
|
|
|
- 10,
|
|
|
+ -10,
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(0, 0, 3, 3),
|
|
|
Stride: 3 * 4,
|
|
@@ -277,7 +277,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- "AdjustHue 3x3 180",
|
|
|
+ "AdjustHue 3x3 -180",
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(-1, -1, 2, 2),
|
|
|
Stride: 3 * 4,
|
|
@@ -287,7 +287,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
0x00, 0x00, 0x00, 0xff, 0x33, 0x33, 0x33, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
|
},
|
|
|
},
|
|
|
- 180,
|
|
|
+ -180,
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(0, 0, 3, 3),
|
|
|
Stride: 3 * 4,
|
|
@@ -299,7 +299,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- "AdjustHue 3x3 -10",
|
|
|
+ "AdjustHue 3x3 10",
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(-1, -1, 2, 2),
|
|
|
Stride: 3 * 4,
|
|
@@ -309,7 +309,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
0x00, 0x00, 0x00, 0xff, 0x33, 0x33, 0x33, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
|
},
|
|
|
},
|
|
|
- -10,
|
|
|
+ 10,
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(0, 0, 3, 3),
|
|
|
Stride: 3 * 4,
|
|
@@ -321,7 +321,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
- "AdjustHue 3x3 -180",
|
|
|
+ "AdjustHue 3x3 180",
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(-1, -1, 2, 2),
|
|
|
Stride: 3 * 4,
|
|
@@ -331,7 +331,7 @@ func TestAdjustHue(t *testing.T) {
|
|
|
0x00, 0x00, 0x00, 0xff, 0x33, 0x33, 0x33, 0xff, 0xff, 0xff, 0xff, 0xff,
|
|
|
},
|
|
|
},
|
|
|
- -180,
|
|
|
+ 180,
|
|
|
&image.NRGBA{
|
|
|
Rect: image.Rect(0, 0, 3, 3),
|
|
|
Stride: 3 * 4,
|