User Portlet User Portlet

Christopher Wolfram
Discussions
Very nice! This will make it return x y coordinents: [mcode]FindPeaks = Compile[{{data, _Real, 1}, {width, _Integer}, {cut, _Real}}, ({#, data[[#]]} & /@ Position[(Table[0, {width}]~Join~ Map[UnitStep[# - cut] &, ...
Part isn't trying to extract pieces of the expression because I am usion a variable. Also probably kilo of mega but with wavelets you can get the transform for an image which can be giant almost instantlly.
Me and my dad programmed something with it a long time ago.   So here is what I would do, in devices tab in SystemInformation[] you can find the name of the device.  Then put that into [mcode]ControllerState["name of the...
Are you sure that the file path in either of the earlier lines were right?  And that you didn't move any files around inside the leap SDK including files other than LeapJava.jar?  Also you might want to check that you installed the program from the...
If the camera doesn't move you could just crop a hand made mask around it and then use TextRecognize[] to read off the numbers themselves.
You could just run:Fourier[ImageData[insert image here]]and then run:Abs[Fourier[ImageData[insert image here]]]to get a rational version. Finally you can run:[mcode]Image[Abs[Fourier[ImageData[insert image...
Actually I figured it out.  What I was trying to do is find the distance between a point and the nearst point on a line.  Here is the code that does it: Minimize[Norm[{Sin[t], Cos[t]} - Rescale[verts][[1]]], t] -Chris
When I just run the code you gave me it stays at the some old resolution, but if I then run ImageCapture[] twice (the first time it hangs then says $Aborted) then run CurrentImage[], then it works.  Is there any way to do this programmatically? ...
So I have been programming augmented reality apps in Mathematica and I am now trying to find neat applications for augmented reality.  If you have any ideas for things that you think would be a cool augmented reality app, then post them here. ...
Cool.  But one thing I noticed is that because you write images = CurrentImage[2] the framerate is divided by two.  A better way to do it might be [mcode]image=CurrentImage[]; oldimage=CurrentImage[]; Dynamic[oldimage=image;...