Dirty hack default tip

Mon, 22 Dec 2025 14:23:18 -0500

author
Tuomo Valkonen <tuomov@iki.fi>
date
Mon, 22 Dec 2025 14:23:18 -0500
changeset 69
14a42aa4601a
parent 68
dc4011187db2

Dirty hack

Tests/Manifest.toml file | annotate | diff | comparison | revisions
Tests/Project.toml file | annotate | diff | comparison | revisions
Tests/src/Tests.jl file | annotate | diff | comparison | revisions
--- a/Tests/Manifest.toml	Mon Dec 22 14:15:53 2025 -0500
+++ b/Tests/Manifest.toml	Mon Dec 22 14:23:18 2025 -0500
@@ -2,7 +2,7 @@
 
 julia_version = "1.12.1"
 manifest_format = "2.0"
-project_hash = "a5033b27f6b558902a98b67f9c8977979d22afe7"
+project_hash = "6b0efe4860af9d66465cc146a9d5da2d24b7d98a"
 
 [[deps.AlgTools]]
 deps = ["DelimitedFiles", "Printf"]
--- a/Tests/Project.toml	Mon Dec 22 14:15:53 2025 -0500
+++ b/Tests/Project.toml	Mon Dec 22 14:23:18 2025 -0500
@@ -1,12 +1,13 @@
 name = "Tests"
+version = "0.1.1"
 authors = ["Tuomo Valkonen <tuomov@iki.fi>"]
-version = "0.1.1"
 
 [deps]
 AlgTools = "c46e2e78-5339-41fd-a966-983ff60ab8e7"
 ColorTypes = "3da002f7-5984-5a60-b8a6-cbb66c0b333f"
 ColorVectorSpace = "c3611d14-8923-5661-9e6a-0046d554d3a4"
 FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
+ImageCore = "a09fc81d-aa75-5fe9-8630-4744c3626534"
 ImageIO = "82e4d734-157c-48bb-816b-45c225c6df19"
 ImageTools = "b548cc0d-4ade-417e-bf62-0e39f9d2eee9"
 Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
--- a/Tests/src/Tests.jl	Mon Dec 22 14:15:53 2025 -0500
+++ b/Tests/src/Tests.jl	Mon Dec 22 14:23:18 2025 -0500
@@ -11,6 +11,7 @@
 # Dependencies
 using Printf
 using FileIO
+using ImageCore # We don't use ImageCore, but Julia is fiddly and fails if don't import ImageCore
 using ColorTypes: Gray
 # ColorVectorSpace is only needed to ensure that conversions
 # between different ColorTypes are defined.
@@ -78,7 +79,7 @@
     params = params ⬿ (save_prefix = save_prefix * "denoise_" * params.image_name,)
 
     # Load image and add noise
-    b = Float64.(Gray.(TestImages.testimage(params.image_name)))
+    b = Float64.(Gray{Float64}.(TestImages.testimage(params.image_name)))
     b_noisy = b .+ params.noise_level.*randn(size(b)...)
 
     # Launch (background) visualiser

mercurial