|
1 | 1 | package net.imglib2.algorithm.math; |
2 | 2 |
|
| 3 | +import java.util.List; |
| 4 | + |
3 | 5 | import net.imglib2.Interval; |
4 | 6 | import net.imglib2.KDTree; |
| 7 | +import net.imglib2.Point; |
5 | 8 | import net.imglib2.RandomAccessible; |
6 | 9 | import net.imglib2.RandomAccessibleInterval; |
7 | 10 | import net.imglib2.algorithm.math.abstractions.IFunction; |
@@ -407,6 +410,36 @@ static public final < T extends RealType< T > > IFunction source( final RandomAc |
407 | 410 | return intervalSource( ( RandomAccessibleInterval< T > )src ); |
408 | 411 | return new RandomAccessibleSource< T >( src ); |
409 | 412 | } |
| 413 | + |
| 414 | + static public final < T extends RealType< T > > KDTreeSource< T > gen( final List< Point > positions, final T value, final double radius ) |
| 415 | + { |
| 416 | + return new KDTreeSource< T >( positions, value, radius ); |
| 417 | + } |
| 418 | + |
| 419 | + static public final < T extends RealType< T > > KDTreeSource< T > gen( final List< Point > positions, final T value, final double radius, final Object outside ) |
| 420 | + { |
| 421 | + return new KDTreeSource< T >( positions, value, radius, outside ); |
| 422 | + } |
| 423 | + |
| 424 | + static public final < T extends RealType< T > > KDTreeSource< T > gen( final List< Point > positions, final T value, final double radius, final Object outside, final Interval interval ) |
| 425 | + { |
| 426 | + return new KDTreeSource< T >( positions, value, radius, outside, interval ); |
| 427 | + } |
| 428 | + |
| 429 | + static public final < T extends RealType< T > > KDTreeSource< T > gen( final List< Point > positions, final List< T > values, final double radius ) |
| 430 | + { |
| 431 | + return new KDTreeSource< T >( positions, values, radius ); |
| 432 | + } |
| 433 | + |
| 434 | + static public final < T extends RealType< T > > KDTreeSource< T > gen( final List< Point > positions, final List< T > values, final double radius, final Object outside ) |
| 435 | + { |
| 436 | + return new KDTreeSource< T >( positions, values, radius, outside ); |
| 437 | + } |
| 438 | + |
| 439 | + static public final < T extends RealType< T > > KDTreeSource< T > gen( final List< Point > positions, final List< T > values, final double radius, final Object outside, final Interval interval ) |
| 440 | + { |
| 441 | + return new KDTreeSource< T >( positions, values, radius, outside, interval ); |
| 442 | + } |
410 | 443 |
|
411 | 444 | static public final < T extends RealType< T > > KDTreeSource< T > gen( final KDTree< T > kdtree, final double radius ) |
412 | 445 | { |
|
0 commit comments