Commit b0cc4a0f authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

Rename types used to specify camera output

parent 41fab222
......@@ -14,9 +14,8 @@
module Tao
export
PreprocessedImage,
SingleImage,
TimeoutError,
UnprocessedImage,
WeightedImage,
readfits,
writefits,
......
......@@ -77,7 +77,7 @@ function mean(::Type{T},
A = zeros(T, size(cam))
n = 0
while n < nimgs
img = timedwait(PreprocessedImage, cam, timeout)
img = timedwait(SingleImage, cam, timeout)
if skip > 0
skip -= 1
else
......
......@@ -94,35 +94,25 @@ abstract type AbstractCamera{T} end
"""
`Tao.AbstractImageKind` is the super-type of concrete types specifying the
ouptput of a camera or an image provider.
Abstract type `Tao.CameraOutput` is the super-type of concrete types specifying
the ouptput of a camera or an image provider.
"""
abstract type AbstractImageKind end
abstract type CameraOutput end
"""
Singleton type `UnprocessedImage` is a sub-type of
[`Tao.AbstractImageKind`](@ref) and is used to require a raw image (as provided
by the detector) from a camera or an image provider.
Singleton type `SingleImage` is a sub-type of [`Tao.CameraOutput`](@ref) and is
used to require a single image from a camera or an image provider.
"""
struct UnprocessedImage <: AbstractImageKind end
struct SingleImage <: CameraOutput end
"""
Singleton type `PreprocessedImage` is a sub-type of
[`Tao.AbstractImageKind`](@ref) and is used to require a pre-processed image
from a camera or an image provider.
Singleton type `WeightedImage` is a sub-type of [`Tao.CameraOutput`](@ref) and
is used to require a pre-processed image with its weights from a camera or an
image provider.
"""
struct PreprocessedImage <: AbstractImageKind end
"""
Singleton type `WeightedImage` is a sub-type of [`Tao.AbstractImageKind`](@ref)
and is used to require a pre-processed image with its weghts from a camera or
an image provider.
"""
struct WeightedImage <: AbstractImageKind end
struct WeightedImage <: CameraOutput end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment