TestImages.jl
Страница в процессе перевода. |
This package provides a convenient Julia interface for loading standard named test images and example images for the internal usage in JuliaImages. This can be used in conjunction with the Images package.
Usage
This package currently contains two main functions:
-
testimage
that loads existing image files. Check the list of test images for what’s available. -
testimage_dip3e
that loads an image from the DIP3E textbook. "Digital Image Processing, 3rd edition" by Rafael C. Gonzalez and Richard E. Woods. -
shepp_logan
that generates a phantom image, which is used very widely in image reconstruction experiments.
using TestImages
img = testimage("cameraman.tif") # fullname
img = testimage("cameraman") # without extension works
img = testimage("cam") # with only partial name also works
img = testimage_dip3e("fig0905") # load figure 9.5: wirebond-mask from the DIP3E textbook
img = testimage_dip3e("wirebond-mask") # same as above
TestImages.shepp_logan(256) # generate the Shepp-Logan phantom image