public Point3dRgbI( Point3D_F64 p , int rgb ) { this.set(p); this.rgb = rgb; } }
public int computeI( double totalLength ) { double size = compute(totalLength); if( size >= 0 ) return (int)(size+0.5); else return -1; }
@Override public void zero() { super.zero(); this.block = 0; } }
public ImageRectangle(int x0, int y0, int x1, int y1) { set(x0,y0,x1,y1); }
public ConfigThresholdLocalOtsu(int regionWidth , double tuning) { this(ConfigLength.fixed(regionWidth),tuning); }
/** * Computes the fractional area of intersection between the two regions. * * @return number from 0 to 1. higher means more intersection */ public double computeOverlap( ImageRectangle a , ImageRectangle b ) { if( !a.intersection(b,work) ) return 0; int areaI = work.area(); int bottom = a.area() + b.area() - areaI; return areaI/ (double)bottom; }
/** * Adds a point to the contour list */ private void add( int x , int y ) { labeled.data[indexLabel] = label; if( storagePoints.sizeOfTail() < maxContourSize ) { storagePoints.addPointToTail(x - 1, y - 1); } }
public IntegralKernel( int numBlocks ) { this.blocks = new ImageRectangle[numBlocks]; this.scales = new int[ numBlocks ]; for( int i = 0; i < numBlocks; i++ ) { blocks[i] = new ImageRectangle(); } }
public static ConfigLength relative(double fraction , int minimum ) { return new ConfigLength(minimum,fraction); }
public FastQueueArray_I32(int arrayLength) { this.length = arrayLength; init(10,int[].class,true); }
public PointIndex_I32 copy() { return new PointIndex_I32(x,y,index); } }
public PointGradient_F64(PointGradient_F64 orig) { set(orig); }
public FastQueueArray_F64(int arrayLength) { this.length = arrayLength; init(10,double[].class,true); }
public SetIterator createIterator() { return new SetIterator(); }
public PointGradient_F64 copy() { return new PointGradient_F64(this); } }
public RArray2D_F32( int rows, int cols ) { reshape(rows,cols); }
public ImageRectangle( ImageRectangle orig ) { set(orig); }
public ConfigThresholdBlockMinMax(int width , double minimumSpread, boolean down ) { this(ConfigLength.fixed(width),minimumSpread,down); }
public ConfigLength copy() { return new ConfigLength(length,fraction); }
public static ConfigLength fixed(double pixels ) { return new ConfigLength(pixels,-1); }