How to get RGB values for a portion of texture, specifically an image I was wondering if I could do the following with python in Blender:


Import Image into Blender with addon
Subdivide the plane and make a lot of new objects which are fragments of the original
Check the color of each fragment and possibly delete


I know how to do steps 1 and 2, but I have no clue how to do the third step.  The goal, in general, is to import an image and delete all the parts that are a certain color, in this case white.  I then want to extrude the image, so just using transparency doesn't work.

I would appreciate any help.  Thanks in advance.
If you're just trying to extrude a silhouette of an object, doing it with a subdivided plane is probably the worst option (you'll end up with potentially useless geometry, I'm assuming this isn't what you want).

Your best bet here is probably to import the image as a background image through this interface in the right panel.



Then go into an orthographic camera mode and create geometry over it.

Another option could be to open the picture in a program like Adobe Illustrator, automatically or manually trace it to create a path, export as SVG and import to use as geometry in Blender.