Classes | Functions | Variables
trf_learn::recognize_3d Namespace Reference

Classes

class  DataScale
class  FiducialPicker
class  ImagePublisher
class  InterestPointDataset
class  NarrowTextureFeatureExtractor
class  PCAIntensities
class  Recognize3DParam
class  ScanLabeler
class  SVM
class  SVMPCA_ActiveLearner

Functions

def confusion_matrix
def dataset_to_libsvm
def draw_dataset
def draw_labeled_points
def draw_points
def find_max_in_density
def insert_folder_name
def instance_to_image
def instances_to_image
def inverse_indices
def load_data_from_file2
def make_point_exclusion_test_set
def preprocess_data_in_dir
def preprocess_scan_extract_features
def separate_by_labels

Variables

tuple current_scan_pred = InterestPointDataset(xs, results, locs2d, locs3d, None)
tuple dataset = ut.load_pickle(fname)
string dest = 'mode'
list dset = locations['data']
tuple fname = raw_input('pick a file name')
tuple fp = FiducialPicker(args[0])
tuple fpfh = rospy.ServiceProxy('fpfh', fsrv.FPFHCalc)
string help = 'fiducialpicker, preprocess, or label'
tuple histogram = np.matrix(res.hist.histograms)
tuple img = cv.CloneMat(cdisp['cv'])
tuple ip = ImagePublisher('active_learn')
list keys = locations['data']
tuple kfe = KinectFeatureExtractor()
tuple learner = SVMPCA_ActiveLearner(use_pca=True)
tuple locations = ut.load_pickle(opt.locations)
 mode = opt.mode
tuple neg_to_pos_ratio = float(nneg)
int NEGATIVE = 0
tuple nneg = np.sum(dataset.outputs == NEGATIVE)
tuple npos = np.sum(dataset.outputs == POSITIVE)
tuple p = optparse.OptionParser()
tuple picked_i = int(raw_input('pick a key to use'))
tuple points3d = np.matrix(res.hist.points3d)
float POSITIVE = 1.0
tuple req = fsrv.FPFHCalcRequest()
tuple res = fpfh(req)
tuple results = np.matrix(learner.classify(sdset))
tuple s
list seed_dset = keys[i]
 trained = False
float UNLABELED = 2.0
string weight_balance = ' -w0 1 -w1 %.2f'

Function Documentation

def trf_learn.recognize_3d.confusion_matrix (   true_labels,
  predicted 
)

Definition at line 76 of file recognize_3d.py.

def trf_learn.recognize_3d.dataset_to_libsvm (   dataset,
  filename 
)

Definition at line 157 of file recognize_3d.py.

def trf_learn.recognize_3d.draw_dataset (   dataset,
  img,
  scale = 1.,
  size = 2,
  scan_id = None 
)

Definition at line 185 of file recognize_3d.py.

def trf_learn.recognize_3d.draw_labeled_points (   image,
  dataset,
  pos_color = [255,
  neg_color = [0,
  scale = 1. 
)

Definition at line 172 of file recognize_3d.py.

def trf_learn.recognize_3d.draw_points (   img,
  img_pts,
  color,
  size = 1,
  thickness = -1 
)

Definition at line 180 of file recognize_3d.py.

Definition at line 740 of file recognize_3d.py.

def trf_learn.recognize_3d.insert_folder_name (   apath,
  folder_name 
)

Definition at line 130 of file recognize_3d.py.

def trf_learn.recognize_3d.instance_to_image (   win_size,
  instance,
  min_val,
  max_val 
)

Definition at line 111 of file recognize_3d.py.

def trf_learn.recognize_3d.instances_to_image (   win_size,
  instances,
  min_val,
  max_val 
)

Definition at line 105 of file recognize_3d.py.

def trf_learn.recognize_3d.inverse_indices (   indices_exclude,
  num_elements 
)

Definition at line 202 of file recognize_3d.py.

def trf_learn.recognize_3d.load_data_from_file2 (   fname,
  rec_param 
)

Definition at line 134 of file recognize_3d.py.

def trf_learn.recognize_3d.make_point_exclusion_test_set (   training_dataset,
  all_data_dir,
  ext 
)

Definition at line 249 of file recognize_3d.py.

def trf_learn.recognize_3d.preprocess_data_in_dir (   dirname,
  ext 
)

Definition at line 237 of file recognize_3d.py.

def trf_learn.recognize_3d.preprocess_scan_extract_features (   raw_data_fname,
  ext 
)

Definition at line 208 of file recognize_3d.py.

def trf_learn.recognize_3d.separate_by_labels (   points,
  labels 
)

Definition at line 70 of file recognize_3d.py.


Variable Documentation

Definition at line 2148 of file recognize_3d.py.

Definition at line 2125 of file recognize_3d.py.

Definition at line 2002 of file recognize_3d.py.

Definition at line 2050 of file recognize_3d.py.

list trf_learn::recognize_3d::fname = raw_input('pick a file name')

Definition at line 2049 of file recognize_3d.py.

Definition at line 2023 of file recognize_3d.py.

tuple trf_learn::recognize_3d::fpfh = rospy.ServiceProxy('fpfh', fsrv.FPFHCalc)

Definition at line 2094 of file recognize_3d.py.

string trf_learn::recognize_3d::help = 'fiducialpicker, preprocess, or label'

Definition at line 2003 of file recognize_3d.py.

tuple trf_learn::recognize_3d::histogram = np.matrix(res.hist.histograms)

Definition at line 2109 of file recognize_3d.py.

tuple trf_learn::recognize_3d::img = cv.CloneMat(cdisp['cv'])

Definition at line 2151 of file recognize_3d.py.

Definition at line 2136 of file recognize_3d.py.

Definition at line 2044 of file recognize_3d.py.

tuple trf_learn::recognize_3d::kfe = KinectFeatureExtractor()

Definition at line 2122 of file recognize_3d.py.

Definition at line 2134 of file recognize_3d.py.

Definition at line 2043 of file recognize_3d.py.

Definition at line 2015 of file recognize_3d.py.

Definition at line 2132 of file recognize_3d.py.

Definition at line 68 of file recognize_3d.py.

Definition at line 2126 of file recognize_3d.py.

Definition at line 2127 of file recognize_3d.py.

tuple trf_learn::recognize_3d::p = optparse.OptionParser()

Definition at line 2000 of file recognize_3d.py.

tuple trf_learn::recognize_3d::picked_i = int(raw_input('pick a key to use'))

Definition at line 2047 of file recognize_3d.py.

Definition at line 2110 of file recognize_3d.py.

Definition at line 67 of file recognize_3d.py.

tuple trf_learn::recognize_3d::req = fsrv.FPFHCalcRequest()

Definition at line 2099 of file recognize_3d.py.

Definition at line 2104 of file recognize_3d.py.

tuple trf_learn::recognize_3d::results = np.matrix(learner.classify(sdset))

Definition at line 2147 of file recognize_3d.py.

Initial value:
00001 ScanLabeler(args[0], ext='_features_df2_dict.pkl', scan_to_train_on=opt.train, 
00002                 seed_dset=opt.seed, features_to_use=opt.feature)

Definition at line 2060 of file recognize_3d.py.

Definition at line 2048 of file recognize_3d.py.

Definition at line 2135 of file recognize_3d.py.

Definition at line 66 of file recognize_3d.py.

string trf_learn::recognize_3d::weight_balance = ' -w0 1 -w1 %.2f'

Definition at line 2133 of file recognize_3d.py.



trf_learn
Author(s): Hai Nguyen (hai@gatech.edu) Advisor: Prof. Charlie Kemp, Lab: Healthcare Robotics Lab at Georgia Tech
autogenerated on Wed Nov 27 2013 11:47:18