
Make3D --- convert your image into 3d automatically C++ FQA Lite: Defective C++ Part of C++ FQA Lite This page summarizes the major defects of the C++ programming language (listing all minor quirks would take eternity). To be fair, some of the items by themselves could be design choices, not bugs. No compile time encapsulation In naturally written C++ code, changing the private members of a class requires recompilation of the code using the class. This makes C++ interfaces very unstable - a change invisible at the interface level still requires to rebuild the calling code, which can be very problematic when that code is not controlled by whoever makes the change. Well, at least when all relevant code is controlled by the same team of people, the only problem is the frequent rebuilds of large parts of it. Outstandingly complicated grammar "Outstandingly" should be interpreted literally, because all popular languages have context-free (or "nearly" context-free) grammars, while C++ has undecidable grammar. In practice, this means three things. This causes two problems.
Blowing up HTML5 video and mapping it into 3D space « Craftymind I’ve been doing a bit of experimenting with the Canvas and Video tags in HTML5 lately, and found some cool features hiding in plain sight. One of those is the Canvas.drawImage() api call. Here is the description on the draft site. 3.10 Images To draw images onto the canvas, the drawImage method can be used. The api lets you take the contents of specific HTML elements and draw them into a canvas, and the 3rd element in that list is just begging to be abused. Blowing apart fragments of video Click around the video frame to blow up that part of the video, the exploded pieces will continue to play the video inside them. 3D Video This demo in particular runs really well inside webkit based browsers, but not so much in Firefox. *Update* – I’ve changed the ogg video to be 640 x 360, prepare to see firefox weep Lessons learned There’s a couple hints I found out along the way that are good to know if you want to play around with drawing video. Secondly, don’t try copying individual pixels around.
GECODE home Photosynth Photosynth is a software application from Microsoft Live Labs and the University of Washington that analyzes digital photographs and generates a three-dimensional model of the photos and a point cloud of a photographed object.[1] Pattern recognition components compare portions of images to create points, which are then compared to convert the image into a model. Users are able to view and generate their own models using a software tool available for download at the Photosynth website. History[edit] Photosynth is based on Photo Tourism, a research project by University of Washington graduate student Noah Snavely.[2] Shortly after Microsoft's acquisition of Seadragon in early 2006, that team began work on Photosynth, under the direction of Seadragon founder Blaise Agüera y Arcas.[3] Microsoft released a free tech preview version on November 9, 2006. In March 2010, Photosynth added support for Gigapixel panoramas stitched in Microsoft ICE. Process[edit] Capabilities[edit] In the media[edit]
Use gperf for efficient C/C++ command line processing Command-line processing and the need for gperf Command-line processing is historically one of the most ignored areas in software development. Just about any relatively complicated software has dozens of available command-line options. Listing 1. if (strtok(cmdstring, "+dumpdirectory")) { // code for printing help messages goes here } else if (strtok(cmdstring, "+dumpfile")) { // code for printing version info goes here } Instead of the ANSI C-based application program interface (API), a C++ developer would probably use strings from the Standard Template Library (STL). This is where gperf comes in. Back to top Gperf usage pattern Gperf reads in a set of keywords from a user-provided file (which typically has a .gperf extension, although this is not mandatory)—for example, commandoptions.gperf—and generates C/C++ sources for the hash table, hashing, and lookup methods. gperf -L C++ command_line_options.gperf > perfecthash.hpp Gperf input file format Listing 2. C code inclusion Declarations