Commit Graph

3708 Commits

Author SHA1 Message Date
Adam Feuer 05380823cc updated imread parameters comment to standard format
- with 'str' file type (instead of 'string')
2014-08-09 09:01:07 -07:00
Vighnesh Birodkar 3973b30300 docstring changes and code movement 2014-08-09 21:29:41 +05:30
Johannes Schönberger f9fd683fcb Test missed line for coverage 2014-08-08 19:51:10 -04:00
Johannes Schönberger 83a6b64844 Fix return value description 2014-08-08 17:01:52 -04:00
Johannes Schönberger 23fd7b89af Improve test coverage 2014-08-08 17:01:52 -04:00
Johannes Schönberger ce0e9174c9 Fix test cases which are now wrong due to previous binning error 2014-08-08 17:01:52 -04:00
Johannes Schönberger fc085ec779 Account for case when image only contains one unique value 2014-08-08 17:01:52 -04:00
Johannes Schönberger 8aa5ef8697 Return to old function name threshold_isodata 2014-08-08 17:01:52 -04:00
Johannes Schönberger 31cf1acf24 Fix isodata-thresholding according to Zachary Pincus 2014-08-08 17:01:52 -04:00
Vighnesh Birodkar 6d0bf723d7 Docstring changes and typos 2014-08-08 23:16:38 +05:30
Johannes Schönberger 3b3bb01270 Fix denoise tests 2014-08-08 08:27:57 -04:00
Adam Feuer 6d9a3c3913 reformat comments to be standard format
- clarified function names
- comments in standard format
- removed extra blank line
- as per code review feedback
2014-08-06 21:14:00 -07:00
Vighnesh Birodkar 1fa7bced8d skip error test 2014-08-06 23:45:35 +05:30
Vighnesh Birodkar 9371c4f0e7 Fixed potential import error 2014-08-06 22:38:18 +05:30
Vighnesh Birodkar 35c9746b74 comment 2014-08-06 02:48:03 +05:30
Vighnesh Birodkar 3ad2b682d6 test skip 2014-08-06 02:47:24 +05:30
Vighnesh Birodkar 69fec94326 rag copy in threshold cut 2014-08-06 02:46:29 +05:30
Vighnesh Birodkar 452921d9f2 API changes, comments and docstrings 2014-08-06 02:44:33 +05:30
Vighnesh Birodkar 07cb79cd27 Cut cost is computed by Cython code 2014-08-05 23:35:32 +05:30
Vighnesh Birodkar d8c0b2e7dd Add unit test 2014-08-05 23:35:32 +05:30
Vighnesh Birodkar 7e2f33cb11 Refer sections of paper in comments 2014-08-05 23:33:23 +05:30
Vighnesh Birodkar f261e51faa rename method to cut_normalized 2014-08-05 23:33:23 +05:30
Vighnesh Birodkar 6cc0cf4a88 use map_array instead of modifying graph 2014-08-05 23:33:23 +05:30
Vighnesh Birodkar 62f0909776 Remove unused except caluses 2014-08-05 23:33:23 +05:30
Vighnesh Birodkar fc9e8c4670 doc string correction 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar d398b7fd96 used standard eignen solver 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar c915aef759 Updated bento file 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 2017e350ff Comments to graph_cut.py 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 9c8b1efd26 docstring to _ncut_cy.pys 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 273b9d081e docstrings to _ncut.py 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 1e39dfc7a1 rectified threshold mistake 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar b05646e201 Docstring of graph_cut.py 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 68b087ca48 Docstrings 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 997d4a3a68 cleaned up _ncut.py 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 0971c11db6 Cleaned up rag.py 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar ddf11bdfe8 pep8 changes 2014-08-05 23:33:22 +05:30
Vighnesh Birodkar 7215936f5c First working copy 2014-08-05 23:33:22 +05:30
Adam Feuer 1cb73c79d6 improved name of pil import/export functions
- to make it clear what the functions actually do:
  ndarray_to_pil() and pil_to_ndarray()
- as per code review feedback
- updated tests to use the new function names

- incoming change to pil_plugin assumed PIL Image
  objects will always be from files; this is
  not always true anymore. Now pil_plugin
  checks to see if the Image came from a file
  before trying to close its associated file.
2014-08-05 08:03:40 -07:00
Adam Feuer 4a0b99ad6f fixed bad indent 2014-08-05 07:52:45 -07:00
Adam Feuer 32061fb66d added a space character to trigger travis build 2014-08-05 07:52:45 -07:00
Adam Feuer 1dcb60fd68 added tests for roundtrip export and import
- and corrected error in imexport - wasn't using imsave code
  correctly
- split imsave into imsave and imexport functions to reuse
  imsave code
2014-08-05 07:52:45 -07:00
Adam Feuer b03683d6c5 pil_plugin can import and export from memory
- added capability to import and export to PIL Image
  objects, not just files - allows for converting
  to and from PIL image objects without writing
  to disk
- no unit test yet
2014-08-05 07:50:09 -07:00
Juan Nunez-Iglesias c0f3697271 Merge pull request #1084 from blink1073/miniconda-travis
Major Overhaul of Travis Build
2014-08-04 19:50:28 -05:00
Steven Silvester 2a339fe69c Improve import behavior for rag fallback 2014-08-04 07:40:37 -05:00
Steven Silvester 04e53f124f Remove confusing dummy variable 2014-08-04 07:30:13 -05:00
Steven Silvester 382be1a457 Formatting and docstring cleanup. 2014-08-04 07:26:07 -05:00
Steven Silvester f2b7e104f8 Add documentation and rename import variable 2014-08-04 06:37:48 -05:00
Steven Silvester 208afc3837 Move version_requirements to _shared and remove skipif from require. 2014-08-02 11:09:46 -05:00
Steven Silvester e3b84edf1b Fix python 2.6 restoration/unwrap error 2014-08-02 10:30:32 -05:00
blink1073 b6dcf3c336 Update Travis build to use Anaconda.
Update Travis build to use Anaconda

Travis updates and fixes

More travis fixes

Another travis attempt

Revert changes

Use PIL and Pillow

Refactor travis into 4 different builds

Fix activation error

Remove explicit mpl in build_versions.py

Make matplotlib an explicit requirement

Rearrange travis

Make pillow a hard requirement

Try again to make Pillow optional

Fix bash syntax error

Fix bash syntax error

Bump required cython version

More rearrangments

Remove mpl from build_versions, rearrange travis

Fix version check

Make matplotlib explicit again

Conda install into test env

Check for proper install

Allow tests to skip if networkx is not available

Allow tests to skip if networkx is not available

Try swapping pillow for matplotlib

Allow tests to pass when matplotlib is not present

Remove matplotlib from build_versions

Print PIL version

Get pillow from PIP

Allow tests to skip if matplotlib is not present.

Allow tests to skip if networkx is not present.

travis fix

Remove unused mpl import that caused test error

Use nose-cov and do not run doctests without optional libs

Bump required numpy version and fix nose calls

Make overlay test repeatable

bump numpy version again

Move low-end numpy to python 2.7

Play with minimum versions

Add version requirements and use functions

Add version requirements and use functions

Allow require to skip a test

More implementation of require decorator

Update require decorator and clean up tests

Only use requires decorator when needed

Fix python3 error in version_requirements

Fix build errors

Fix handling of require with tests

More fixes for require handler

Use latest miniconda

Fix more build errors

Fix another dict comprehension and travis file.

Fix missing imports

Fix dictionary again

Fix import warning

Fix last failing test on 2.6

Skip doc examples on python2.6

Do not run doctests on python2.6

Fix typo in travis.yml

Make numpy-1.6 compatibility changes

Use numpy-1.6 in travis python2.6

Add tests for version requirements

Fix line noise in PR

Add additional io plugins

Fix simpleitk test.

Fix python 3 error in freeimage_plugin.

Install imread in Travis.

Put matplotlib settings in XDG recommended directory

Fix formatting in travis yml

Fix formatting in travis yml

Make sure to close PIL file atexit

Fix name of apt package xcftools

Fix pil fp closing

Fix matplotlibrc creation

Only download SimpleITK on py2x, run coverage on py27

Fix travis yml syntax error

Run coveralls on py2.7

Install SimpleITK on py3.3 and run coverage on py3.3

Make simpleitk install quiet

Use standard nose and clean up incantation

Fix travis yml syntax error

Put in miniconda workout for libc error.

Fix imread plugin.

Fix travis syntax

Remove unused import

Remove miniconda libpng in favor of system png

Fix imread install and move libm removal to after optional pkg install.

Fix png header copy in travis yml

Another attempt to use png headers

Debug freeimage

Add jpeg library for freeimage and debug imread.

More debug for imread and freeimage

More freeimage and imread debugging

More debugging

Use correct paths for test env

Make sure imread is tied to libpng15

Add a TODO note for simpleitk test causing error.

Fix typo in yml

Cleanup and add more comments to travis yml

Update comment

Try and add 3.2 support.

Docstring formatting

Add more travis comments.

Try numpy 1.6 on python 2.7

Fix travis syntax error

Rename CONDA to ENV for clarity

Alias python on python 3.2

Use python 3.2 as the system python

Clean up libfreeimage install

Fix order on py3.2 pre_install

Move old numpy back to py26

Use the appropriate python calls.

Debug 3.2 build.

Update comment

Fix syntax error

Another fix for syntax error.

Install scipy after downloading import tools

More debugging for py32

Do not install conda on py3.2 (duh)

Fix typo in travis yml

Fix py32 qt install, separate pyfits and imread to find error

Fix syntax error and front-load option lib check for debug

pyfits is not supported in py3.2, try imread now

imread is also not supported on py3.2

install imread before pyfits to show relationship with libs

Make pip builds quiet

Minor formatting to retrigger build

Allow simpleitk to fail to download without breaking the build

Use travis_retry for SimpleITK

See what breaks when we keep libm in

Now remove libm again
2014-08-02 06:47:09 -05:00