equal
deleted
inserted
replaced
81 |
81 |
82 /** |
82 /** |
83 * Returns the X origin of this <code>Kernel</code>. |
83 * Returns the X origin of this <code>Kernel</code>. |
84 * @return the X origin. |
84 * @return the X origin. |
85 */ |
85 */ |
86 final public int getXOrigin(){ |
86 public final int getXOrigin(){ |
87 return xOrigin; |
87 return xOrigin; |
88 } |
88 } |
89 |
89 |
90 /** |
90 /** |
91 * Returns the Y origin of this <code>Kernel</code>. |
91 * Returns the Y origin of this <code>Kernel</code>. |
92 * @return the Y origin. |
92 * @return the Y origin. |
93 */ |
93 */ |
94 final public int getYOrigin() { |
94 public final int getYOrigin() { |
95 return yOrigin; |
95 return yOrigin; |
96 } |
96 } |
97 |
97 |
98 /** |
98 /** |
99 * Returns the width of this <code>Kernel</code>. |
99 * Returns the width of this <code>Kernel</code>. |
100 * @return the width of this <code>Kernel</code>. |
100 * @return the width of this <code>Kernel</code>. |
101 */ |
101 */ |
102 final public int getWidth() { |
102 public final int getWidth() { |
103 return width; |
103 return width; |
104 } |
104 } |
105 |
105 |
106 /** |
106 /** |
107 * Returns the height of this <code>Kernel</code>. |
107 * Returns the height of this <code>Kernel</code>. |
108 * @return the height of this <code>Kernel</code>. |
108 * @return the height of this <code>Kernel</code>. |
109 */ |
109 */ |
110 final public int getHeight() { |
110 public final int getHeight() { |
111 return height; |
111 return height; |
112 } |
112 } |
113 |
113 |
114 /** |
114 /** |
115 * Returns the kernel data in row major order. |
115 * Returns the kernel data in row major order. |
121 * <code>null</code>, a newly allocated array containing |
121 * <code>null</code>, a newly allocated array containing |
122 * the kernel data in row major order |
122 * the kernel data in row major order |
123 * @throws IllegalArgumentException if <code>data</code> is less |
123 * @throws IllegalArgumentException if <code>data</code> is less |
124 * than the size of this <code>Kernel</code> |
124 * than the size of this <code>Kernel</code> |
125 */ |
125 */ |
126 final public float[] getKernelData(float[] data) { |
126 public final float[] getKernelData(float[] data) { |
127 if (data == null) { |
127 if (data == null) { |
128 data = new float[this.data.length]; |
128 data = new float[this.data.length]; |
129 } |
129 } |
130 else if (data.length < this.data.length) { |
130 else if (data.length < this.data.length) { |
131 throw new IllegalArgumentException("Data array too small "+ |
131 throw new IllegalArgumentException("Data array too small "+ |