Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

Revision 384285f1e4152e7b962f0081e629c268bb50d8d7 authored by Jonas on 04 October 2023, 08:33:42 UTC, committed by Jonas on 04 October 2023, 08:33:42 UTC
Add link vide youtube
1 parent ad43f9c
  • Files
  • Changes
  • 1dc96b4
  • /
  • README.md
Raw File Download

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • revision
  • directory
  • content
revision badge
swh:1:rev:384285f1e4152e7b962f0081e629c268bb50d8d7
directory badge
swh:1:dir:1dc96b42fa35ea1865d5fcfe7ecfd14cb2e50ad9
content badge
swh:1:cnt:6d927c340dc4f93466f15d9ea040e7d877ba061b

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
README.md
# Curl Noise Jittering


This repository contains the code associated with the article:

---

**Curl Noise Jittering**

[J. Andreas Bærentzen](http://www2.compute.dtu.dk/~janba/), [Jeppe Revall Frisvad](http://www.imm.dtu.dk/~jerf/), [Jonàs Martínez](https://sites.google.com/site/jonasmartinezbayona/)

[Siggraph Asia 2023 Conference Track](https://asia.siggraph.org/2023/)

---

This repository contains the Python code used for the 2D direct method and comparisons with other methods. The comparisons are shown in Figure 4.

A ShaderToy demo able to produce the images in Figure 5 of the paper (using our implicit method) is available [here](https://www.shadertoy.com/view/Dd3yW4).

A video showcasing the method can be found [here](https://youtu.be/raY0pwL21pw).

# Description

![Representative image](curl_noise_jittering.jpg)

We propose a method for implicitly generating blue noise point sets. Our method is based on the observations that curl noise vector fields are volume-preserving and that jittering can be construed as moving points along the streamlines of a vector field. We demonstrate that the volume preservation keeps the points well separated when jittered using a curl noise vector field. At the same time, the anisotropy that stems from regular lattices is significantly reduced by such jittering. In combination, these properties entail that jittering by curl noise effectively transforms a regular lattice into a point set with blue noise properties. Our implicit method does not require computing the point set in advance. This makes our technique valuable when an arbitrarily large set of points with blue noise properties is needed.


# Installation


## Dependencies

- Anaconda, Miniconda (https://anaconda.org), or Pip (https://pypi.org/project/pip/)
- CMake (https://cmake.org)

## Installation using Anaconda

```
conda env create -f environment.yml
conda activate cnj
./build_external.sh
```

On Windows, run .sh files in the Developer PowerShell for Visual Studio and the rest in the Anaconda Prompt.

## Installation using Pip

```
python3 -m pip install --user numpy matplotlib numba scipy
./build_external.sh
```

# Usage 

To generate the results of Figure 4 in the paper, run the command:

```
python3 points.py
```

If everything goes well, an output figure_4.pdf will be generated.
This figure is a comparison of our method (far left) to the methods discussed in the paper. We show point sets (top) as well as the power spectrum (middle) and the radial spectrum for each point set (bottom).

# External libraries

This repository includes code from:

* Capacity Constrained Voronoi Diagrams https://github.com/michaelbalzer/ccvt (subfolder ccvt_mod)

* psa - Point Set Analysis https://github.com/nodag/psa/tree/master (subfolder psa_mod)

* Optimizing dyadic nets http://abdallagafar.com/publications/dyadic-nets/files/dyadic-nets-code.zip (subfolder dyadic_mod)
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2025, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API