You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicRandomAccess< O > randomAccess( finalIntervalinterval )
323
+
{
324
+
returnCompute.this.randomAccess();
325
+
}
326
+
}, interval );
317
327
}
318
328
319
329
/**
320
330
* View the result of the computations as a {@code RandomAccessibleInterval}, i.e. there is no target image,
321
331
* instead any pixel can be viewed as the result of the computation applied to it, dynamically.
322
332
*
333
+
* Conversion between the input and computing type is done with an appropriate converter or none when types are the same.
334
+
*
323
335
* See also {@code ViewableFunction} and methods below related to {@code Compute#randomAccess()} and {@code Compute#cursor()}.
324
336
* The key difference is that, here, the computing and the output type can be different.
325
337
*
326
-
* @param inConverter_ To convert input images into the {@code computingType}. Can be null, defaults to a {@code Util#genericRealTypeConverter()}.
327
338
* @param computingType The {@code Type} that defines the math to use.
328
339
* @param outputType The @{code Type} of the constructed and returned {@code RandomAccessibleInterval}.
329
-
* @param outConverter_ To convert from the {@code computingType} to the {@code outputType}. Can be null, defaults to a {@code Util#genericRealTypeConverter()}.
330
340
*
331
341
* return A {@code RandomAccessibleInterval} view of the result of the computations.
332
342
*/
333
-
@SuppressWarnings("unchecked")
334
343
public < OextendsRealType< O >, CextendsRealType< C > > RandomAccessibleInterval< O > view(
public < OextendsRealType< O > > IterableRandomAccessibleFunction< O > view()
10
+
public < CextendsRealType< C >, OextendsRealType< O > > IterableRandomAccessibleFunction<C,O > view()
11
11
{
12
-
returnnewIterableRandomAccessibleFunction< O >( this );
12
+
returnnewIterableRandomAccessibleFunction< C, O >( this );
13
13
}
14
14
15
-
public < OextendsRealType< O > > IterableRandomAccessibleFunction< O > view( finalOoutputType )
15
+
public < CextendsRealType< C >, OextendsRealType< O > > IterableRandomAccessibleFunction<C,O > view( finalOoutputType )
16
16
{
17
-
returnnewIterableRandomAccessibleFunction< O >( this, outputType );
17
+
returnnewIterableRandomAccessibleFunction< C, O >( this, outputType );
18
18
}
19
19
20
-
public < OextendsRealType< O > > IterableRandomAccessibleFunction< O > view( finalOoutputType, finalConverter< RealType< ? >, O > converter )
20
+
public < CextendsRealType< C >, OextendsRealType< O > > IterableRandomAccessibleFunction< C, O > view( finalCcomputeType, finalOoutputType )
21
21
{
22
-
returnnewIterableRandomAccessibleFunction< O >( this, outputType, converter );
22
+
returnnewIterableRandomAccessibleFunction< C, O >( this, null, computeType, outputType, null );
23
+
}
24
+
25
+
public < CextendsRealType< C >, OextendsRealType< O > > IterableRandomAccessibleFunction< C, O > view( finalOoutputType, finalConverter< C, O > converter )
26
+
{
27
+
returnnewIterableRandomAccessibleFunction< C, O >( this, outputType, converter );
23
28
}
24
29
25
30
public < OextendsRealType< O > > IterableRandomAccessibleFunctionDouble< O > viewDouble()
0 commit comments