Ejemplo n.º 1
0
def _install():
   """this function downloads and compile the code for the chanvese implementation"""
   download_file='http://www.ipol.im/pub/art/2013/16/nl-bayes_20130617.zip'
   tools.download_and_extract(download_file)  
   # getting example images

   subprocess.call('make OMP=1', shell=True,cwd=exec_folder)   
Ejemplo n.º 2
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2013/16/nl-bayes_20130617.zip'
    tools.download_and_extract(download_file)
    # getting example images

    subprocess.call('make OMP=1', shell=True, cwd=exec_folder)
Ejemplo n.º 3
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2011/ys-dct/src_demoDCTdenoising.tar.gz'
    tools.download_and_extract(download_file)
    # getting example images

    subprocess.call('make OMP=1', shell=True, cwd=exec_folder)
Ejemplo n.º 4
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2011/bcm_nlm/nlmeansC.tar.gz'
    tools.download_and_extract(download_file)
    # getting example images

    this_file_path = os.path.dirname(__file__)
    subprocess.call('make', shell=True, cwd=exec_folder)
Ejemplo n.º 5
0
def _install():
    """this function downloads and compile the code for the inpainting implementation"""
    download_file = 'http://www.ipol.im/pub/art/2015/136/inpaint_8.tgz'
    tools.download_and_extract(download_file)
    this_file_path = os.path.dirname(__file__)
    subprocess.call(' mkdir build; cd build; cmake ..; make',
                    shell=True,
                    cwd=exec_folder)
Ejemplo n.º 6
0
def _install():
   """this function downloads and compile the code for the chanvese implementation"""
   download_file='http://www.ipol.im/pub/art/2011/bcm_nlm/nlmeansC.tar.gz'
   tools.download_and_extract(download_file)  
   # getting example images

   this_file_path=os.path.dirname(__file__)
   subprocess.call('make', shell=True,cwd=exec_folder)   
Ejemplo n.º 7
0
def _install():
   """this function downloads and compile the code for the chanvese implementation"""
   download_file='http://www.ipol.im/pub/art/2011/ys-dct/src_demoDCTdenoising.tar.gz'
   tools.download_and_extract(download_file)  
   # getting example images

   
   subprocess.call('make OMP=1', shell=True,cwd=exec_folder)   
Ejemplo n.º 8
0
def _install():
   """this function downloads and compile the code for the chanvese implementation"""
   download_file='http://www.ipol.im/pub/art/2013/16/nl-bayes_20130617.zip'
   tools.download_and_extract(download_file)  
   # getting example images
   tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cinput.jpg',os.path.join(exec_folder,'cinput.jpg'))
   tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cnoisy.jpg',os.path.join(exec_folder,'cnoisy.jpg'))
   
   subprocess.call('make OMP=1', shell=True,cwd=exec_folder)   
Ejemplo n.º 9
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2011/ys-dct/src_demoDCTdenoising.tar.gz'
    tools.download_and_extract(download_file)
    # getting example images
    tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cinput.jpg',
                      os.path.join(exec_folder, 'cinput.jpg'))
    tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cnoisy.jpg',
                      os.path.join(exec_folder, 'cnoisy.jpg'))

    subprocess.call('make OMP=1', shell=True, cwd=exec_folder)
Ejemplo n.º 10
0
def _install():
        """this function downloads and compile the code for the chanvese implementation"""
        download_file='http://www.ipol.im/pub/art/2012/g-ace/ace_20121029.tar.gz'
        tools.download_and_extract(download_file) 
        if platform.system()=="Windows":
                tools.download_and_extract('ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll32.zip') 
                path=os.path.dirname(__file__)
                #replacing the makefile.gcc file
                copy(os.path.join(path,'patch','makefile.gcc'), os.path.join(exec_folder,'makefile.gcc'))
                subprocess.call('make CC=gcc -f makefile.gcc', shell=True,cwd=exec_folder)  
                
        else:
                subprocess.call('make -f makefile.gcc', shell=True,cwd=exec_folder)   
Ejemplo n.º 11
0
def _install():
   """this function downloads and compiles the code"""

   # downloading and extraction the zip file 
   download_file='http://www.ipol.im/pub/art/2014/78/stereo-guided-filter_1.0.tar.gz' # todo: put the right zip file url
   tools.download_and_extract(download_file) 


   # getting example images 
   # if there are no eample images in the zip file we can get some exemple images from the demo page
   # tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cinput.jpg',os.path.join(exec_folder,'cinput.jpg'))
   # tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cnoisy.jpg',os.path.join(exec_folder,'cnoisy.jpg'))


   subprocess.call('mkdir Build && cd Build;cmake -D CMAKE_BUILD_TYPE:string=Release ..;make', shell=True,cwd=source_directory)   
Ejemplo n.º 12
0
def _install():
   """this function downloads and compiles the code"""

   # downloading and extraction the zip file 
   download_file='http://www.ipol.im/pub/art/2012/g-ace/ace_20121029.tar.gz' # todo: put the right zip file url
   tools.download_and_extract(download_file) 


   # getting example images 
   # if there are no eample images in the zip file we can get some exemple images from the demo page
   # tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cinput.jpg',os.path.join(exec_folder,'cinput.jpg'))
   # tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cnoisy.jpg',os.path.join(exec_folder,'cnoisy.jpg'))


   subprocess.call('make -f makefile.gcc', shell=True,cwd=source_directory)   
Ejemplo n.º 13
0
def _install():
    """this function downloads and compiles the code"""

    # downloading and extraction the zip file
    download_file = 'http://www.ipol.im/pub/art/2014/78/stereo-guided-filter_1.0.tar.gz'  # todo: put the right zip file url
    tools.download_and_extract(download_file)

    # getting example images
    # if there are no eample images in the zip file we can get some exemple images from the demo page
    # tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cinput.jpg',os.path.join(exec_folder,'cinput.jpg'))
    # tools.urlretrieve('http://www.ipol.im/pub/art/2011/bcm_nlm/cnoisy.jpg',os.path.join(exec_folder,'cnoisy.jpg'))

    subprocess.call(
        'mkdir Build && cd Build;cmake -D CMAKE_BUILD_TYPE:string=Release ..;make',
        shell=True,
        cwd=source_directory)
Ejemplo n.º 14
0
def _install():
   """this function downloads and compile the code for the chanvese implementation"""
   download_file='http://www.ipol.im/pub/art/2012/g-cv/chanvese_20120715.tar.gz'
   tools.download_and_extract(download_file)  
   this_file_path=os.path.dirname(__file__)
 
   
   if platform.system()=="Windows":
      
      path=os.path.dirname(__file__)
      #replacing the makefile.gcc file
      copy(os.path.join(path,'patch','makefile.gcc'), os.path.join(exec_folder,'makefile.gcc'))
      copy(os.path.join(path,'patch','imageio.c'), os.path.join(exec_folder,'makefile.c'))
      subprocess.call('make CC=gcc -f makefile.gcc', shell=True,cwd=exec_folder)  

   else:
      subprocess.call('make -f makefile.gcc', shell=True,cwd=exec_folder)   
Ejemplo n.º 15
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2012/g-ace/ace_20121029.tar.gz'
    tools.download_and_extract(download_file)
    if platform.system() == "Windows":
        tools.download_and_extract(
            'ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll32.zip')
        path = os.path.dirname(__file__)
        #replacing the makefile.gcc file
        copy(os.path.join(path, 'patch', 'makefile.gcc'),
             os.path.join(exec_folder, 'makefile.gcc'))
        subprocess.call('make CC=gcc -f makefile.gcc',
                        shell=True,
                        cwd=exec_folder)

    else:
        subprocess.call('make -f makefile.gcc', shell=True, cwd=exec_folder)
Ejemplo n.º 16
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2012/g-cv/chanvese_20120715.tar.gz'
    tools.download_and_extract(download_file)
    this_file_path = os.path.dirname(__file__)

    if platform.system() == "Windows":

        path = os.path.dirname(__file__)
        #replacing the makefile.gcc file
        copy(os.path.join(path, 'patch', 'makefile.gcc'),
             os.path.join(exec_folder, 'makefile.gcc'))
        copy(os.path.join(path, 'patch', 'imageio.c'),
             os.path.join(exec_folder, 'makefile.c'))
        subprocess.call('make CC=gcc -f makefile.gcc',
                        shell=True,
                        cwd=exec_folder)

    else:
        subprocess.call('make -f makefile.gcc', shell=True, cwd=exec_folder)
Ejemplo n.º 17
0
def _install():
   """this function downloads and compile the code """
   download_file='http://www.ipol.im/pub/art/2013/26/tvl1flow_3.tar.gz'
   tools.download_and_extract(download_file)  
   this_file_path=os.path.dirname(__file__)
   subprocess.call('make', shell=True,cwd=exec_folder)   
Ejemplo n.º 18
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2012/g-tvd/tvdenoise_20120516.tar.gz'
    tools.download_and_extract(download_file)
    this_file_path = os.path.dirname(__file__)
    subprocess.call('make -f makefile.gcc', shell=True, cwd=exec_folder)
Ejemplo n.º 19
0
def _install():
    """this function downloads and compile the code """
    download_file = 'http://www.ipol.im/pub/art/2013/26/tvl1flow_3.tar.gz'
    tools.download_and_extract(download_file)
    this_file_path = os.path.dirname(__file__)
    subprocess.call('make', shell=True, cwd=exec_folder)
Ejemplo n.º 20
0
def _install():
   
   """this function downloads and compile the code for the SURF implementation"""
   download_file='http://www.ipol.im/pub/art/2015/69/demo_SURF_src.zip'
   tools.download_and_extract(download_file) 
   subprocess.call('make OMP=1', shell=True,cwd=source_directory)    
Ejemplo n.º 21
0
try:
    from setuptools import setup
except ImportError:
    from distutils.core import setup

from distutils.extension import Extension

import sys
sys.path.append('../..')
import tools

download_file = 'http://www.ipol.im/pub/art/2015/35/classic_edge_detectors_1.0.zip'
tools.download_and_extract(download_file)

import numpy as np

sources = [
    '_wrapper.pyx',
    '../../csources/classic_edge_detectors_1.0/classic_edge_detectors.c'
]

include_dirs = [np.get_include(), '.']

if __name__ == '__main__':

    extensions = Extension('_wrapper',
                           sources,
                           extra_compile_args=['-std=c99'])
    from Cython.Build import cythonize

    libname = "lib"
Ejemplo n.º 22
0
try:
	from setuptools import setup
except ImportError:
	from distutils.core import setup


from distutils.extension import Extension

import sys
sys.path.append('../..')
import tools



download_file='http://www.ipol.im/pub/art/2015/35/classic_edge_detectors_1.0.zip'
tools.download_and_extract(download_file)  



import numpy as np

sources = ['_wrapper.pyx','../../csources/classic_edge_detectors_1.0/classic_edge_detectors.c']
             
include_dirs=[ np.get_include(),'.']

if __name__ == '__main__':
	
	extensions = Extension('_wrapper',sources, extra_compile_args=['-std=c99'])  
	from Cython.Build import cythonize

	libname="lib"
Ejemplo n.º 23
0
def _install():
   """this function downloads and compile the code for the tvdeconv implementation"""
   download_file='http://www.ipol.im/pub/art/2012/g-tvdc/tvdeconv_20120607.tar.gz'
   tools.download_and_extract(download_file)  
   this_file_path=os.path.dirname(__file__)
   subprocess.call('make -f makefile.gcc', shell=True,cwd=exec_folder)   
Ejemplo n.º 24
0
def _install():
   """this function downloads and compile the code for the inpainting implementation"""
   download_file='http://www.ipol.im/pub/art/2015/136/inpaint_8.tgz'
   tools.download_and_extract(download_file)  
   this_file_path=os.path.dirname(__file__)
   subprocess.call(' mkdir build; cd build; cmake ..; make', shell=True,cwd=exec_folder)   
Ejemplo n.º 25
0
def _install():
   
   """this function downloads and compile the code for the chanvese implementation"""
   download_file='http://www.ipol.im/pub/art/2011/my-asift/demo_ASIFT_src.tar.gz'
   tools.download_and_extract(download_file) 
   subprocess.call('make OMP=1', shell=True,cwd=source_directory)    
Ejemplo n.º 26
0
def _install():
    """this function downloads and compile the code for the chanvese implementation"""
    download_file = 'http://www.ipol.im/pub/art/2011/my-asift/demo_ASIFT_src.tar.gz'
    tools.download_and_extract(download_file)
    subprocess.call('make OMP=1', shell=True, cwd=source_directory)
Ejemplo n.º 27
0
def _install():
    """this function downloads and compile the code for the SURF implementation"""
    download_file = 'http://www.ipol.im/pub/art/2015/69/demo_SURF_src.zip'
    tools.download_and_extract(download_file)
    subprocess.call('make OMP=1', shell=True, cwd=source_directory)
Ejemplo n.º 28
0
def _install():
   """this function downloads and compile the code for the chanvese implementation"""
   download_file='http://www.ipol.im/pub/art/2012/g-ace/ace_20121029.tar.gz'
   tools.download_and_extract(download_file) 
   subprocess.call('make -f makefile.gcc', shell=True,cwd=exec_folder)