This will load the fragment density map from the specified file 'fragment.map'
and store the result in map.
...
...
@@ -31,7 +31,7 @@ Now let's inspect what we just loaded:
print map.GetPixelSampling(), map.GetSize()
We can see that the sampling is set to 1.0 Angstroems in all three dimensions. The loaded map is an instance of :class:`~ost.img.ImageHandle`, a class to represent images in 1, 2 and 3 dimensions.
We can see that the sampling is set to 1.0 Angstroms in all three dimensions. The loaded map is an instance of :class:`~ost.img.ImageHandle`, a class to represent images in 1, 2 and 3 dimensions.
@@ -47,13 +47,13 @@ first have to import the :mod:`img.alg <ost.img.alg>` module.
The :mod:`img.alg <ost.img.alg>` module provides a wide range of algorithm to
manipulate image data. Here for example we use a LowPassFilter to restrict the
resolution of the density map to frequencies lower than a treshold.
resolution of the density map to frequencies lower than a threshold.
.. code-block:: python
map_filtered=map.Apply(alg.LowPassFilter(3.0))
The filtered map is stored in a new variable called `fragment_map_filtered`. A complete list of algorithms is available on the :doc:`img/alg/alg` page.
The filtered map is stored in a new variable called `map_filtered`. A complete list of algorithms is available on the :doc:`img/alg/alg` page.