- bump dependencies and add README
This commit is contained in:
+4
-3
@@ -8,7 +8,7 @@ use algos::ObjectiveFunction;
|
||||
use itertools::Itertools;
|
||||
use ndarray::{Array, Array1, Array2, Array3, AsArray, Axis, Dimension, s};
|
||||
use num::cast::AsPrimitive;
|
||||
use rand::Rng;
|
||||
use rand::RngExt;
|
||||
use rayon::iter::IntoParallelIterator;
|
||||
use rayon::iter::ParallelIterator;
|
||||
use std::cell::RefCell;
|
||||
@@ -788,8 +788,9 @@ mod tests {
|
||||
Transform::new(vec![1.0, 0.0], vec![im_a.shape()[0]]).interpolate::<1, _, _>(&im_a)?;
|
||||
let a = gaussian_smooth(im_a.view(), &[50.0])?;
|
||||
let b = gaussian_smooth(im_b.view(), &[50.0])?;
|
||||
let m = MattesMetric::new_from_arrays(a.view(), b.view(), SamplingArg::Fixed(1000), 3, 0.05)?
|
||||
.with_fixed_mu(vec![None, Some(0.0)]);
|
||||
let m =
|
||||
MattesMetric::new_from_arrays(a.view(), b.view(), SamplingArg::Fixed(1000), 3, 0.05)?
|
||||
.with_fixed_mu(vec![None, Some(0.0)]);
|
||||
let mut npz = NpzWriter::new(File::create(
|
||||
std::env::home_dir().unwrap().join("tmp/metric.npz"),
|
||||
)?);
|
||||
|
||||
Reference in New Issue
Block a user