| |
Methods defined here:
- __init__(self, *args, **kwargs)
- callbak(self, arg)
- cleanup_directory(self)
- condition_data(self)
- If your model and data images are such that the pixel extraction
functions yield very different number of pixels for ICP computations for
the model and the data images, you may be able to improve your results
by calling this method before you call icp().
- displayImage6(self, argimage, title='')
- This does the same thing as displayImage3() except that it also provides for
"save" and "exit" buttons. Note that 'argimage' must be of type Image.
- display_array_as_image(self, numpy_arr)
- display_images_used_for_binary_image_icp(self)
- display_images_used_for_corner_based_icp(self)
- display_images_used_for_edge_based_icp(self)
- display_pixel_list_as_image(self, pixel_list)
- display_results_as_movie(self)
- extract_pixels_from_binary_image(self, model_or_data)
- extract_pixels_from_color_image(self, model_or_data)
- icp(self)
- move_to_model_origin(self)
- Since two patterns that are situated at different places in a plane may not be
related by a Euclidean transform for an arbitrary placement of the origin
even when one pattern appears to be a rotated version of the other, we will
assume that the origin for ICP calculations will be at the "center" of the
model image. Now our goal becomes to find an R and a T that will make the
data pattern congruent with the model pattern with respect to this origin.
- save_array_as_image(self, numpy_arr, label)
- save_pixel_list_as_image(self, pixel_list, filename)
Static methods defined here:
- gendata(feature, imagesize, position, orientation, output_image_name)
- Permissible values for feature: 'line', 'triangle'
Permissible values for imagesize: (m,n) tuple for the size of the output image
Permissible values for position: (x,y) pixel coordinates
Permissible values for orientation: integer value for degrees
The code here is just the simplest example of synthetic data
generation for experimenting with ICP. You can obviously
construct more complex model and data images by calling on the
other shape drawing primitives of the ImageDraw class. When
specifying coordinates, note the following
.----------> positive x
|
|
|
V
positive y
A line is drawn from the first pair (x,y) coordinates to the
second pair.
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
|