Skip to content

Commit 21fcbd8

Browse files
committed
ParameterConversion: differentiate arrayToRAIs
1 parent cd32113 commit 21fcbd8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/ops/doc/ParameterConversion.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ In such cases, devising methods to instead *wrap* user arguments will maximize p
129129
* @return an image ({@link RandomAccessibleInterval}) backed by the input {@code double[][]}
130130
* @implNote op names='engine.convert', type=Function
131131
*/
132-
public static RandomAccessibleInterval<DoubleType> arrayToRAI(final double[][] input)
132+
public static RandomAccessibleInterval<DoubleType> arrayToRAIWrap(final double[][] input)
133133
{
134134
// Wrap 2D array into DoubleAccess usable by ArrayImg
135135
var access = new DoubleAccess() {
@@ -203,7 +203,7 @@ Looking back at our :ref:`original Op<original-op>`, we would have to write an *
203203
204204
When the user tries to invoke our ``filter.convolve`` ``Function`` Op on all ``double[][]``\ s, the following happens:
205205

206-
#. Each ``double[][]`` is converted into a ``RandomAccessibleInterval<DoubleType>`` using our ``arrayToRAI`` ``engine.convert`` Op.
206+
#. Each ``double[][]`` is converted into a ``RandomAccessibleInterval<DoubleType>`` using our ``arrayToRAIWrap`` ``engine.convert`` Op.
207207
#. The ``filter.convolve`` Op is invoked on the ``RandomAccessibleInterval<DoubleType>``\ s, returning a ``RandomAccessibleInterval<DoubleType>`` as output.
208208
#. This output ``RandomAccessibleInterval<DoubleType>`` is converted into a ``double[][]`` using our ``raiToArray`` ``engine.convert`` Op.
209209
#. The **converted** ``double[][]`` output is returned to the user.
@@ -274,7 +274,7 @@ Below is an ``engine.copy`` Op that would store the converted Op's output ``doub
274274
275275
When the user tries to invoke our ``filter.convolve`` ``Computer`` Op on all ``double[][]``\ s, the following happens:
276276

277-
#. Each ``double[][]`` is converted into a ``RandomAccessibleInterval<DoubleType>`` using our ``arrayToRAI`` ``engine.convert`` Op.
277+
#. Each ``double[][]`` is converted into a ``RandomAccessibleInterval<DoubleType>`` using our ``arrayToRAIWrap`` ``engine.convert`` Op.
278278
#. The ``filter.convolve`` Op is invoked on the ``RandomAccessibleInterval<DoubleType>``\ s, returning a ``RandomAccessibleInterval<DoubleType>`` as an output.
279279
#. The output ``RandomAccessibleInterval<DoubleType>`` is converted into a ``double[][]`` using our ``raiToArray`` ``engine.convert`` Op.
280280
#. The **converted** output ``double[][]`` is *copied* back into the user's ``double[][]`` buffer using our ``copyDoubleMatrix`` ``engine.copy`` Op.

0 commit comments

Comments
 (0)