Matt McCormick
4b53c92c14
BUG: Fix OTSU thresholding tests with matplotlib IO plugin.
...
The matplotlib IO returns float arrays from [0, 1], which gives difference
results than a ubyte array. Explicitly convert to a ubyte array in the tests.
2012-07-20 18:49:44 -04:00
Tony S Yu
6b591e27a0
Add PlotPlugin and cleanup code.
2012-07-20 17:49:28 -05:00
Juan Nunez-Iglesias
9006c1dab3
Sort files from a global pattern alphanumerically
...
Users usually expect an alphanumeric sort, not lexicographic sort, on
their filenames. This is now the behaviour of ImageCollection.
2012-07-20 17:38:06 -05:00
Matt McCormick
bb1add8abd
BUG: Ignore colorconv RuntimeWarning:invalid value encountered in true_divide.
...
Sometimes zero divided by zero can occur in this code. Saturation was already
explicitly set to zero when 'delta' is zero. According to Wikipedia, hue is
undefined when 'delta' here is zero, so explicitly set to zero.
2012-07-20 18:33:41 -04:00
Dharhas Pothina
46f6733fc9
added xyz2lab, lab2xyz not quite working
2012-07-20 17:00:36 -05:00
Stefan van der Walt
a130b8d2d9
Refactor geometric transforms.
2012-07-20 17:57:15 -04:00
Juan Nunez-Iglesias
a61ac37ff2
Add concatenate() support for MultiImage
...
Previously we added the ImageCollection.concatenate function. This
updates MultiImage to have the same functionality, and moves the grunt
work to an outside function to avoid repetition.
2012-07-20 16:46:33 -05:00
wilsaj
32d3e1b161
use repr_png and repr_jpeg hooks rather than repr_html
...
these will work in the ipython qtconsole as well!
2012-07-20 16:44:05 -05:00
wilsaj
70cf6cfba0
fix test so it looks for new Image class
2012-07-20 15:39:50 -05:00
Juan Nunez-Iglesias
62ce6f3ab5
Add test for ImageCollection.concatenate
2012-07-20 15:35:03 -05:00
wilsaj
605a4e2cd7
add support for serializing to file-like objects (e.g. StringIO) to PIL plugin
2012-07-20 15:22:53 -05:00
wilsaj
d2e0484845
add html repr method for Image class
2012-07-20 15:19:22 -05:00
wilsaj
f676152448
add stefan's image class
2012-07-20 15:18:09 -05:00
Juan Nunez-Iglesias
11c7fd2f59
Add function 'concatenate' to ImageCollection
...
Many algorithms work on 3D stacks rather than images. It is convenient
to provide automatic conversion from an ImageCollection to an nD-stack.
2012-07-20 15:16:48 -05:00
Stefan van der Walt
c9bef5e06f
Merge pull request #222 from thewtex/freeimage_error_2
...
BUG: Fix tests when FreeImage is not installed.
2012-07-20 13:05:37 -07:00
Matt McCormick
74554793ad
STY: Align multi-line string statements.
2012-07-20 16:00:06 -04:00
wilsaj
86f67f85ed
raise an import error if trying to run test suite without nose
2012-07-20 14:48:03 -05:00
Matt McCormick
db4cc04a90
BUG: Fix tests when FreeImage is not installed.
...
The plugin loader tries plugins but only catches ImportError and
RuntimeError. The FreeImage plugin was throwing OSError. Tests
were failing when FreeImage was not installed. It now throws a
RuntimeError.
2012-07-20 15:46:58 -04:00
Tony S Yu
1903ed892d
API change: switch order of image viewer and callback arguments.
2012-07-20 14:45:32 -05:00
Jonathan J. Helmus
dceb7b6c7d
variable name changes and small fixes
2012-07-20 15:39:40 -04:00
Jonathan J. Helmus
5101aa2a38
added test for ImageCollection slicing
2012-07-20 15:23:25 -04:00
Jonathan J. Helmus
0036dc9775
ImageCollection now supports slicing
2012-07-20 15:09:18 -04:00
Matt McCormick
89f0151a7a
BUG: Fix testing failures when FreeImage not installed.
...
FreeImage throws an OSError, which must be caught when attempting
to load the IO plugins for tests to pass without FreeImage installed.
2012-07-20 15:05:45 -04:00
Tony S Yu
c27119b0cd
ENH: Add image viewer based on Qt and Matplotlib
2012-07-20 14:03:47 -05:00
Tony S Yu
81764f693b
ENH: Add orientation kwarg to IntelligentSlider
2012-07-20 14:02:36 -05:00
wilsaj
02a26db453
remove message about not being able to load nose; fixes #218
2012-07-20 12:26:17 -05:00
Johannes Schönberger
afb479d766
geometric_transform can transform single coordinate tuple
2012-07-15 17:51:34 +02:00
Johannes Schönberger
d7b2c5b51b
add missing doc string for polynomial forward transformation
2012-07-15 15:47:12 +02:00
Johannes Schönberger
5feafee220
extend doc string example for geometric transformations
2012-07-15 15:47:12 +02:00
Johannes Schönberger
9dbad0023c
add support for using transformation objects in warp function
2012-07-15 15:47:12 +02:00
Johannes Schönberger
4dcf8528bf
change interface of transformation merging
2012-07-15 15:47:12 +02:00
Johannes Schönberger
b2ca833509
fix transformation union and add test case
2012-07-15 15:47:12 +02:00
Johannes Schönberger
234810be10
fix inconsistent doc strings
2012-07-15 15:47:12 +02:00
Johannes Schönberger
e2ce1d63de
redesign class interface
2012-07-15 15:47:12 +02:00
Johannes Schönberger
640edc2a62
fix doc string formatting of function estimate_transformation
2012-07-15 15:47:12 +02:00
Johannes Schönberger
ec5c339c68
fix wrong exception type
2012-07-15 15:47:12 +02:00
Johannes Schönberger
2a75b78838
change arguments of function estimate_transformation
2012-07-15 15:47:12 +02:00
Johannes Schönberger
cb3c93a110
change API design and rename some functions
2012-07-15 15:47:11 +02:00
Johannes Schönberger
8bde92b66c
remove inconsistent numeric correction and fix test case
2012-07-15 15:47:11 +02:00
Johannes Schönberger and Johannes Schönberger
acb1d71cd5
apply PEP8 guideline
2012-07-15 15:47:11 +02:00
Johannes Schönberger and Johannes Schönberger
fdf1b6dac1
fixe index errors and improve setup of some matrices
2012-07-15 15:47:11 +02:00
Johannes Schönberger and Johannes Schönberger
bbd9280c2f
add example to make_tform doc string
2012-07-15 15:47:11 +02:00
Johannes Schönberger and Johannes Schönberger
da3239d0ff
remove old import
2012-07-15 15:47:11 +02:00
Johannes Schönberger and Johannes Schönberger
84e18de02d
improve and restructure geomtric transformations
2012-07-15 15:47:11 +02:00
Johannes Schönberger
c0c23968bf
add perimeter measurement
2012-07-14 14:14:28 +02:00
Tony S Yu
25efae8269
Add morphological reconstruction with test and example.
2012-07-13 00:53:51 -04:00
cgohlke
8d313f1d57
Fix io.imsave() problems with passing arguments to plugin "freeimage"
2012-07-12 10:34:15 -07:00
Stefan van der Walt
1dcc172f60
TST: Check number of input angles in radon tf.
2012-07-09 11:29:37 -07:00
Stefan van der Walt
4d1809a63c
BUG: Allow rgb2grey to be called on grey-level images.
2012-07-08 17:49:17 -07:00
Andreas Mueller
46e959a9d9
COSMIT some manual pep8, removed unused imports, removed unused variables and fixed a bug in a ValueError statement.
2012-06-29 11:27:23 +02:00