Commit Graph

22 Commits

Author SHA1 Message Date
emmanuelle a5a771a8e4 Modified label function so that background pixels are labeled with 0, and
background=0 by default.

Modified label function so that background pixels are labeled with 0, and
background=0 by default. All tests of _ccomp.pyx pass

Modified a couple of files to be consistent with the new behavior of
measure.label

Modified doctring of label to pass doctest

Modified TODO.txt as well as release notes to mention the new behavior of
label.

Typo in docstring

Typo in docstring

Changed default value of kw argument background in measure.label

Removed unnecessary and outdated comment
2016-02-22 21:19:23 +01:00
Stefan van der Walt 44150989ee WIP 2016-02-21 16:50:21 +01:00
Steven Silvester c0a0490eed Fix handling of multiple warnings and update tests
Fix handling of multiple warnings

Update all test __init__ files

Update segmentation pkg

Update the color pkg

Update the exposure pkg

Update the filters pkg

Update the io pkg

Update the measure pkg

Update morphology package

Restructure test setup function

Add expected_warnings to __all__

Update restoration pkg.

Remove explicit filter check since it is done elsewhere

Fix the image test helpers

Update the transform pkg

Fix util pkg

Update viewer pkg
2014-12-23 16:51:06 -06:00
Steven Silvester a4e4e57ba5 Create new expected_warnings helper and some cleanup
Add new helper function for expected warnings during test

Indentation cleanups and avoid skipping doctests if possible.
2014-12-23 16:50:18 -06:00
Steven Silvester 0debedd82c Handle more warnings and reset io plugins as needed
Reset plugins prior to running collections test

Handle warnings in morphology pkg

Add __init__ for morpohology tests

Handle warnings for novice pkg

Handle warnings for restoration pkg

Handle warnings for segmentation pkg

Handle warnings for _shared pkg

Handle warnings for transform pkg

Handle warnings for util pkg

Handle warnings in viewer module
2014-12-23 16:48:16 -06:00
Matěj Týč e41bff898a Added fix for the strange input array shapes + tests 2014-11-28 16:45:52 +01:00
Matěj Týč abf3dbc593 Added and tested proper exception handling concerning array shape 2014-11-16 15:33:13 +01:00
Matěj Týč 7c7ecc4bdc Mainly typo fixes 2014-11-11 21:49:57 +01:00
Matěj Týč 438a9355d6 Fixed bugs so test pass now 2014-11-11 00:39:49 +01:00
Matěj Týč 53f93a7f8e Added tests for 3D labelling (that fail) 2014-11-08 12:09:19 +01:00
blink1073 5677dafe41 Move away from random.random in favor of random.rand 2014-07-19 18:18:23 -05:00
blink1073 5ef3f95d71 Add random seeds to tests per #1044 2014-07-05 12:49:42 -05:00
Stefan van der Walt c0be2ec505 Correctly apply catch_warnings() 2014-05-26 01:21:58 +02:00
Stefan van der Walt 1de102a885 Fix broken and circular imports 2014-05-09 02:53:57 +02:00
Stefan van der Walt 5ba3ea421c Fix imports and suppress deprecation warnings 2014-05-08 19:14:38 +02:00
Stefan van der Walt 7152d5c314 Move label to measure module (with deprecation). Warn that background parameter will default to 0 in v0.12. 2014-05-08 17:49:47 +02:00
Johannes Schönberger ecdfd518c6 Add test case for number of labels 2013-04-09 22:54:57 +02: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
Stefan van der Walt 944f79cdce BUG: Fix background labelling for case when (0, 0) belongs to the background. 2012-06-12 09:51:16 -07:00
Stefan van der Walt c78ea107aa ENH: Add background labelling. 2011-12-22 04:47:24 -08:00
Stefan van der Walt b83ece8b05 ENH: Allow choice between 4 and 8 neighbor mode. Improve documentation. 2011-12-16 23:47:32 -08:00
Nelle Varoquaux 114cf44c77 Renamed scikits.image to skimage 2011-10-18 21:12:27 +02:00