AlexanderSimonov / structured-light

Automatically exported from code.google.com/p/structured-light
0 stars 0 forks source link

Installation and usage -notes #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I understood the concept, got the .pde sources and the "processing"-application
but there seems to be no readme.txt or anything telling
me what do do next.

In guess I have to run ThreePhaseScan_24_5 for the program
named the same way to be executed.

After that I managed to install SuperCad with the help
of Google.
Installung PeasyCam failed for some reason. It tells
me to unpack the peasyCam-folder just like I did for
SuperCad but it does not apear in "load Library" and
the program complains that "peasy" is not found.

Sorry, I would really like to see your algorithms in
action but without ANY documentation I cannot get this
to work and I doubt that any other random developer can.

Marcus

Original issue reported on code.google.com by Marcus.W...@gmail.com on 4 Jun 2009 at 5:29

GoogleCodeExporter commented 9 years ago
Hi Marcus,

sorry for the delay concerning a documention.
I´m a bit busy these days...
Just some short hints:
- installing libraries for Processing is always the same as you did with 
SuperCAD. PeasyCam should work the same way (put it into the libraries 
folder of your Processing sketchbook).
If there are problems please see the Peasy webside or visit the busy forum at 
Processing.org
For my code:

You ´ll need all the *pde files 

in a Folder " ThreePhaseScan_24_05"
-DecodeData.pde 
-PhaseUnwrap.pde    
-PhaseUnwrapAll.pde
-PropagatePhases.pde
-ThreePhaseScan_24_05.pde
-XPatternGen.pde    
-YFilters.pde
-ZControlComands.pde
+ a subfolder "data"
---phase1.png   
---phase2.png   
---phase3.png   
---tex.png

So when you´ve installed Processing and its libraries SuperCAD 
(http://labelle.spacekit.ca/supercad/) and  PeasyCam 
(http://mrfeinberg.com/peasycam/), opening one of the pde opens the whole 
package in Processing.

Now with the "RUN" button you can execute the code or compile it to a 
standalone application File/Export_Application.

I know that´s not a documentation, but maybe these hints may help to do first 
steps.

I´ll do my best
Gunter

Original comment by GWe...@googlemail.com on 4 Jun 2009 at 9:12

GoogleCodeExporter commented 9 years ago
Proposal for a readme.txt:

First extract [http://processing.org/download/ processing 1.0.4] to any 
directory

libraries needed:
* http://www.sojamo.de/libraries/controlP5/
* http://labelle.spacekit.ca/supercad/
* http://mrfeinberg.com/peasycam/

steps:
1. extract their zip-files into the libraries 
folder of your Processing sketchbook (c:\\Dokumente und 
Einstellungen\\(user)\\Eigene
Dateien\\Processing\\libraries on Windows
 NOT the folder opened via "Sketch->Show Sketch Folder")
2. execute processing and check that they all visible in Sketch->Import 
Library...
3. load ThreePhaseScan_25_5.pde
4. hit (>) "run"

Original comment by Suran...@gmail.com on 5 Jun 2009 at 12:13

GoogleCodeExporter commented 9 years ago
Hello GWebMa, I got it to run with these notes.
But VDIG version 1.0.4 (stable) and 1.0.5(latest) both
show the image of both cameras I tried extremely distorted.
Using 3 images from a digicam failes due to timing the shots.

Is there a way to make this work with just JMF instead of
quicktime apart from taking your code and writing my own
Java-application all weekend long? (I just wrote a 
milk-scan on the train-ride as the idea was just so
much fun.)
JMF has absolutely no problem with using the cameras.

I once build a basic structured-light -scanner in my first
semester, years ago, and won a price with it. I really would
love to get this 3-phase -idea working here. :)

Marcus

Original comment by Marcus.W...@gmail.com on 5 Jun 2009 at 6:14

GoogleCodeExporter commented 9 years ago
@ Suranfox
thanks for your proposal, I´m going to add a readme to the sources
Meanwhile I added some informations also concerning its usage to the project 
wiki.
@ Marcus
I started the project using the quicktime independent  JMyron library. I 
dropped it for I could not capture 
images above VGA. But it´s easy to switch in that direction:

Replace XPatternGen with the attached version;
AND
modify ZcontrolComands.pde:

void controlEvent(ControlEvent theEvent) {
  println("got a control event from controller with id "+theEvent.controller().id());
  switch(theEvent.controller().id()) {

    case(1):
    m.settings(); // instead of Img.settings();
    break;

That should work (to get JMyron:http://webcamxtra.sourceforge.net/)
Gunter

Original comment by GWe...@googlemail.com on 5 Jun 2009 at 7:07

Attachments:

GoogleCodeExporter commented 9 years ago
OK, I managed to rewrite the code to use libCV and thus only JavaMediaFramework 
and no
Quicktime. :) It works.
I`ll publish the code this weekend after adding installation-nodes and lots of 
comments.

Marcus

Original comment by Marcus.W...@gmail.com on 5 Jun 2009 at 7:53

GoogleCodeExporter commented 9 years ago

Original comment by kylecimc...@gmail.com on 22 Sep 2009 at 5:13