3D scanner - Blender 2.5 add-on (026; 23.01.2011; blender)

 

 

PROJECT ROADMAP

 

1. Pixel color access (from PyAPI)
 1.1. blender source code modifications - rna_image.c and DNA_image_types.h (progress: 100%)
 1.2. put modifications into official Blender 2.5 release (progress: 0%)
 1.3. documentation for PyAPI (progress: 0%)
 1.4. tutorial about using new PyAPI properties for image processing (progress: 0%)
2. Add-on coding
 2.1. add-on user interface (progress: 95%)
 2.2. image binarisation algorithm (progress: 99%)
 2.3. algorithm to create point cloud with linear laser scanner (progress: 99%)
 2.4. algorithm to create point cloud with structural light scanner (progress: 0%)
 2.5. live 3d scanning (progress: 0%)
 2.6. point cloud to mesh algorithms (progress: 10%)
3. tutorial - how to create simple and cheap homemade 3d scanners (progress: 0%)
4. video tutorial about 3d scanning process and add-on usage (progress: 0%)
5. full project documentation (progress: 0%)

 

 

Pixel access

 

SVN path (pixel_access.diff) for Blender 2.56 r 34470

New properties:
bpy.types.Image.frame
bpy.types.Image.pix_x
bpy.types.Image.pix_y
bpy.types.Image.pixel_color

Example usages:
bpy.data.images['video'].frame = 2       # set video frame to process
bpy.data.images['video'].pix_x = 5       # set x coordinate of pixel we want to access
bpy.data.images['video'].pix_y = 10      # set y coordinate of pixel we want to access
bpy.data.images['video'].pixel_color[0]  # returns red channel (0-255)
bpy.data.images['video'].pixel_color[1]  # returns green channel (0-255)
bpy.data.images['video'].pixel_color[2]  # returns blue channel (0-255)
bpy.data.images['video'].pixel_color[3]  # returns alpha channel (0-255)

 

 

Add-on UI

 

 

 

Add-on in action:





Add-on source code will be published when project reaches more advanced stage.
© Copyright Sebastian Korczak 2009 - 2024 polish versionpolish version