User Portlet
Featured Contributor
Discussions |
---|
You can actually do this much more simply. You can get the outside edges of each region by running this: Colorize@MorphologicalComponents[ MorphologicalPerimeter[Binarize[map, {0.225, 0.275}]], CornerNeighbors -> False]If you want... |
CDF does not allow input fields because if you could you could create a free version of Mathematica using the CDF player. |
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? ... |