src/main/java/sc/fiji/pQCT/selectroi/LiveWirePlugin.java
private void initLW() {
		final double[][] pixels = new double[width][height];
		final short[] tempPointer = (short[]) imp.getProcessor().getPixels();
		for (int r = 0; r < height; ++r) {
			for (int c = 0; c < width; ++c) {
				pixels[c][r] = tempPointer[c + r * width];
			}
		}
		lwc = new LiveWireCosts(pixels);
		init();
	}
/** Used to reset livewire when switching to another slice in a stack */
Used to reset livewire when switching to another slice in a stack
Used to reset livewire when switching to another slice in a stack
private void initLW() {
		final double[][] pixels = new double[width][height];
		final short[] tempPointer = (short[]) imp.getProcessor().getPixels();
		for (int r = 0; r < height; ++r) {
			for (int c = 0; c < width; ++c) {
				pixels[c][r] = tempPointer[c + r * width];
			}
		}
		lwc = new LiveWireCosts(pixels);
		init();
	}
private void initLW ( ) { final double [ ] [ ] pixels = new double [ width ] [ height ] ; final short [ ] tempPointer = ( short [ ] ) imp . getProcessor ( ) . getPixels ( ) ; for ( int r = 0 ; r < height ; ++ r ) { for ( int c = 0 ; c < width ; ++ c ) { pixels [ c ] [ r ] = tempPointer [ c + r * width ] ; } } lwc = new LiveWireCosts ( pixels ) ; init ( ) ; }
Used to reset livewire when switching to another slice in a stack
Used to reset livewire when switching to another slice in a stack