~bertrand-nouvel/pycvf-keypoints/trunk

« back to all changes in this revision

Viewing changes to nodes/__init__.py

  • Committer: tranx
  • Date: 2010-10-01 16:56:14 UTC
  • Revision ID: tranx@havane-20101001165614-u938mdd1y1fgd0o5
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
from pycvf.nodes import free
 
3
free=free.__call__
 
4
try:
 
5
  import pycvfext.VLFeat.nodes.mser
 
6
  mser_keypoints=pycvfext.VLFeat.nodes.mser.__call__()-free.__call__('x[1].T')
 
7
except:
 
8
  pass
 
9
 
 
10
 
 
11
 
 
12
dense_sampling=lambda x=32,y=32:free("numpy.mgrid[(x.shape[0]//(2*xx)):x.shape[0]:(x.shape[0]//xx),(x.shape[1]//(2*yy)):x.shape[1]:(x.shape[1]//yy)].reshape(2,-1).T",xx=x,yy=y)
 
13
## 
 
14
## VERY NAIVE COLORSIFT
 
15
##
 
16
#colorsift0=( RGB2YUV() - free('x[0]') - keypoints.gpusift() - setlabel('keypoints') 
 
17
#                       + free('x[1]') - keypoints.descriptors.sift('keypoints()')
 
18
#                       + free('x[2]') - keypoints.descriptors.sift('keypoints()')                       
 
19
#           )
 
20
 
 
21
#colorsift0=( RGB2YUV() - free('x[0]') - keypoints.gpusift() - setlabel('keypoints') 
 
22
#                       + free('x[1]') - keypoints.descriptors.dominant_colors('keypoints()')
 
23
#           )