diff --git a/dev/.documenter-siteinfo.json b/dev/.documenter-siteinfo.json index 1faf1c6..319a33d 100644 --- a/dev/.documenter-siteinfo.json +++ b/dev/.documenter-siteinfo.json @@ -1 +1 @@ -{"documenter":{"julia_version":"1.10.3","generation_timestamp":"2024-05-29T14:49:23","documenter_version":"1.4.1"}} \ No newline at end of file +{"documenter":{"julia_version":"1.10.4","generation_timestamp":"2024-06-07T13:48:26","documenter_version":"1.4.1"}} \ No newline at end of file diff --git a/dev/about/author/index.html b/dev/about/author/index.html index 3182673..fc8d318 100644 --- a/dev/about/author/index.html +++ b/dev/about/author/index.html @@ -1,2 +1,2 @@ -Author · ImageQuilting.jl
+Author · ImageQuilting.jl
diff --git a/dev/about/citation/index.html b/dev/about/citation/index.html index f5d6be5..f857c7c 100644 --- a/dev/about/citation/index.html +++ b/dev/about/citation/index.html @@ -11,4 +11,4 @@ url={http://dx.doi.org/10.1016/j.cageo.2017.05.012}, year={2017}, month={May} -} +} diff --git a/dev/about/license/index.html b/dev/about/license/index.html index bd17b2d..69b196e 100644 --- a/dev/about/license/index.html +++ b/dev/about/license/index.html @@ -19,4 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. diff --git a/dev/index.html b/dev/index.html index 8b9809c..6ea6bfc 100644 --- a/dev/index.html +++ b/dev/index.html @@ -10,4 +10,4 @@ soft::AbstractVector=[], hard::Dict=Dict(), tol::Real=.1, path::Symbol=:raster, nreal::Integer=1, threads::Integer=cpucores(), debug::Bool=false, - progress::Bool=true, rng::AbstractRNG=Random.default_rng())

Performs image quilting simulation as described in Hoffimann et al. 2017.

Parameters

Required

Optional

The main output reals consists of a list of realizations that can be indexed with reals[1], reals[2], ..., reals[nreal]. If debug=true, additional output is generated:

reals, cuts, voxs = iqsim(..., debug=true)

cuts[i] is the boundary cut for reals[i] and voxs[i] is the associated voxel reuse.

source

The major difference compared to the high-level API is that the iqsim function has no notion of coordinate system, and you will have to pre/post-process the data manually to match it with the cells in the simulation grid.

GeoStats.jl takes the coordinate system into account and also enables parallel simulation on clusters of computers with distributed memory.

+ progress::Bool=true, rng::AbstractRNG=Random.default_rng())

Performs image quilting simulation as described in Hoffimann et al. 2017.

Parameters

Required

Optional

The main output reals consists of a list of realizations that can be indexed with reals[1], reals[2], ..., reals[nreal]. If debug=true, additional output is generated:

reals, cuts, voxs = iqsim(..., debug=true)

cuts[i] is the boundary cut for reals[i] and voxs[i] is the associated voxel reuse.

source

The major difference compared to the high-level API is that the iqsim function has no notion of coordinate system, and you will have to pre/post-process the data manually to match it with the cells in the simulation grid.

GeoStats.jl takes the coordinate system into account and also enables parallel simulation on clusters of computers with distributed memory.

diff --git a/dev/objects.inv b/dev/objects.inv index 4e52b00..ee600e5 100644 Binary files a/dev/objects.inv and b/dev/objects.inv differ diff --git a/dev/voxel-reuse/index.html b/dev/voxel-reuse/index.html index a59c1b9..5b8cc96 100644 --- a/dev/voxel-reuse/index.html +++ b/dev/voxel-reuse/index.html @@ -1,7 +1,7 @@ Voxel reuse · ImageQuilting.jl

Helper function

A helper function is provided for the fast approximation of the mean voxel reuse:

ImageQuilting.voxelreuseFunction
voxelreuse(trainimg::AbstractArray{T,N}, tilesize::Dims{N};
            overlap::NTuple{N,Float64}=ntuple(i->1/6,N),
-           nreal::Integer=10, kwargs...)

Returns the mean voxel reuse in [0,1] and its standard deviation.

Notes

  • The approximation gets better as nreal is made larger.
  • Keyword arguments kwargs are passed to iqsim directly.
source

Plot recipe

A plot recipe is provided for tile design in image quilting:

ImageQuilting.voxelreuseplotFunction
voxelreuseplot(trainimg; [options])

Mean voxel reuse plot of trainimg.

Available options:

  • tmin - minimum tile size (default to 7)
  • tmax - maximum tile size (default to minimum(size(trainimg)))
  • overlap - the percentage of overlap (default to 1/6 of tile size)
  • nreal - number of realizations (default to 10)
  • rng - random number generator (default to Random.default_rng())
source

In order to plot the voxel reuse of a training image, install any of the Makie.jl backends.

] add CairoMakie

The example below uses training images from the GeoStatsImages.jl package:

using ImageQuilting
+           nreal::Integer=10, kwargs...)

Returns the mean voxel reuse in [0,1] and its standard deviation.

Notes

  • The approximation gets better as nreal is made larger.
  • Keyword arguments kwargs are passed to iqsim directly.
source

Plot recipe

A plot recipe is provided for tile design in image quilting:

ImageQuilting.voxelreuseplotFunction
voxelreuseplot(trainimg; [options])

Mean voxel reuse plot of trainimg.

Available options:

  • tmin - minimum tile size (default to 7)
  • tmax - maximum tile size (default to minimum(size(trainimg)))
  • overlap - the percentage of overlap (default to 1/6 of tile size)
  • nreal - number of realizations (default to 10)
  • rng - random number generator (default to Random.default_rng())
source

In order to plot the voxel reuse of a training image, install any of the Makie.jl backends.

] add CairoMakie

The example below uses training images from the GeoStatsImages.jl package:

using ImageQuilting
 using GeoStatsImages
 using CairoMakie
 
@@ -12,4 +12,4 @@
 timg₂ = asarray(TI₂, :Z)
 
 voxelreuseplot(timg₁)
-voxelreuseplot!(timg₂)

Voxel reuse plot

+voxelreuseplot!(timg₂)

Voxel reuse plot