src/utils/matrix/operation/CrosscorrelationMatrixOperation.java
public void apply(int row, int column, double value) throws MatrixException {
        input.sliceAt(row, column, row + filterRowSize - 1, column + filterColumnSize - 1);
        double resultValue = 0;
        for (int filterRow = 0; filterRow < filterRowSize; filterRow += dilation) {
            for (int filterColumn = 0; filterColumn < filterColumnSize; filterColumn += dilation) {
                resultValue += input.getValue(filterRow, filterColumn) * filter.getValue(filterRow, filterColumn);
            }
        }
        result.setValue(row, column, resultValue);
        input.unslice();
    }
/**
     * Applies operation.
     *
     * @param row current row.
     * @param column current column.
     * @param value current value.
     * @throws MatrixException throws exception if matrix operation fails.
     */
Applies operation.

@param row current row.
@param column current column.
@param value current value.
@throws MatrixException throws exception if matrix operation fails.
Applies operation . @param row current row . @param column current column . @param value current value . @throws MatrixException throws exception if matrix operation fails .
public void apply(int row, int column, double value) throws MatrixException {
        input.sliceAt(row, column, row + filterRowSize - 1, column + filterColumnSize - 1);
        double resultValue = 0;
        for (int filterRow = 0; filterRow < filterRowSize; filterRow += dilation) {
            for (int filterColumn = 0; filterColumn < filterColumnSize; filterColumn += dilation) {
                resultValue += input.getValue(filterRow, filterColumn) * filter.getValue(filterRow, filterColumn);
            }
        }
        result.setValue(row, column, resultValue);
        input.unslice();
    }
public void apply ( int row , int column , double value ) throws MatrixException { input . sliceAt ( row , column , row + filterRowSize - 1 , column + filterColumnSize - 1 ) ; double resultValue = 0 ; for ( int filterRow = 0 ; filterRow < filterRowSize ; filterRow += dilation ) { for ( int filterColumn = 0 ; filterColumn < filterColumnSize ; filterColumn += dilation ) { resultValue += input . getValue ( filterRow , filterColumn ) * filter . getValue ( filterRow , filterColumn ) ; } } result . setValue ( row , column , resultValue ) ; input . unslice ( ) ; }
Applies operation.
Applies operation .