Package image :: Package test :: Module test_average
[hide private]
[frames] | no frames]

Module test_average

source code

Functions [hide private]
 
test_average1()
average() nominally computes the average pixel value for a stack of identically shaped images.
source code
 
test_average2() source code
 
test_average3() source code
 
test_average4() source code
 
test_average5() source code
 
test_average6() source code
Variables [hide private]
  __package__ = 'image.test'

Imports: TimeExpired, assert_almost_equal, assert_almost_equals, assert_dict_contains_subset, assert_dict_equal, assert_equal, assert_equals, assert_false, assert_greater, assert_greater_equal, assert_in, assert_is, assert_is_instance, assert_is_none, assert_is_not, assert_is_not_none, assert_items_equal, assert_less, assert_less_equal, assert_list_equal, assert_multi_line_equal, assert_not_almost_equal, assert_not_almost_equals, assert_not_equal, assert_not_equals, assert_not_in, assert_not_is_instance, assert_not_regexp_matches, assert_raises, assert_raises_regexp, assert_regexp_matches, assert_sequence_equal, assert_set_equal, assert_true, assert_tuple_equal, combine, eq_, istest, make_decorator, nose, nottest, np, ok_, raises, set_trace, timed, with_setup


Function Details [hide private]

test_average1()

source code 

average() nominally computes the average pixel value for a stack of
identically shaped images.

arrays     specifies a sequence of inputs arrays, which are nominally a
           stack of identically shaped images.

output     may be used to specify the output array.  If none is specified,
           either arrays[0] is copied or a new array of type 'outtype'
           is created.

outtype    specifies the type of the output array when no 'output' is
           specified.

nlow       specifies the number of pixels to be excluded from average
           on the low end of the pixel stack.

nhigh      specifies the number of pixels to be excluded from average
           on the high end of the pixel stack.

badmasks   specifies boolean arrays corresponding to 'arrays', where true
           indicates that a particular pixel is not to be included in the
           average calculation.