Hi Tony,

Installation steps:

This is on OS X 10.8.2, Python 2.7.2:

- I setup a virtualenv and activated that virtual env.
- I cloned the scikit-image git repository
- I installed:

$ python ./setup.py install
...
Installed /Users/parand/Projects/Receipts/pyenv/lib/python2.7/site-packages/scikit_image-0.8dev-py2.7-macosx-10.8-intel.egg
Processing dependencies for scikit-image==0.8dev
Finished processing dependencies for scikit-image==0.8dev

$ python
Python 2.7.2 (default, Jun 20 2012, 16:23:33) 
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
>>> import skimage
>>> skimage.__version__
'0.8dev'
>>> import skimage.filter.rank as rank
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "skimage/filter/__init__.py", line 2, in <module>
    from .ctmf import median_filter
  File "skimage/filter/ctmf.py", line 15, in <module>
    from . import _ctmf
ImportError: cannot import name _ctmf

Best,

Parand

On Thursday, December 13, 2012 8:54:00 PM UTC-8, Tony S Yu wrote:
On Thu, Dec 13, 2012 at 11:22 PM, Josh Warner <silvertr...@gmail.com> wrote:
Hi Parand,

Welcome!  Most of the gallery examples work in the current release (0.7.2 I believe), but the rank filter is in a PR that was merged recently, and is presently only in the dev version.  You may want the functionality in the rank filter for OCR work, where fast local operations like the otsu threshold could be very beneficial.  

I'll let other people answer the questions about specific references as I'm on the road, but I think most of what you need to do is available in scikit-image.

Josh Warner

Just wanted to add: The documentation for the last release can be found here:


It might be a good idea for us to point to the stable version instead of the development version by default.
 

On Wednesday, December 12, 2012 7:00:24 PM UTC-6, Parand Darugar wrote:

<snip> 
- My initial goal is image/document enhancement and cleanup in order to improve OCR. The images are primarily captured via cell phone cameras and scanners, so I'm looking to normalize and enhance the color, remove noise, and straighten them. Any pointers to code, papers, or algorithms that may be of interest would be appreciated.

-- Error message --
>>> import skimage.filter.rank as rank
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "skimage/filter/__init__.py", line 2, in <module>
    from .ctmf import median_filter
  File "skimage/filter/ctmf.py", line 15, in <module>
    from . import _ctmf
ImportError: cannot import name _ctmf

This shouldn't happen. How did you install scikit-image? Are you sure that you built the package after downloading.
 
Cheers,
-Tony