qt/compvision.git
12 years agoFixed NetSend so it can be used in debug mode. master
dherring [Wed, 26 Apr 2006 20:23:03 +0000 (20:23 +0000)]
Fixed NetSend so it can be used in debug mode.
The exact error was
> ASSERT failure in QObject::QObject(): "Cannot create children for a parent that
> is in a different thread.", file kernel\qobject.cpp, line 599

This fix is not "good" in that NetSend must be started a single time.  Should rethink.

12 years agoChanged the default serial port to COM2.
dherring [Mon, 24 Apr 2006 18:52:59 +0000 (18:52 +0000)]
Changed the default serial port to COM2.
Todo:  add these run-time options
- COM1 or COM2
- invert image flag
- zoom factor

12 years agoMakefile had wrong include path for qextserialport...
dherring [Wed, 12 Apr 2006 19:25:12 +0000 (19:25 +0000)]
Makefile had wrong include path for qextserialport...

12 years agoAdded qtcomm as an external respository to use.
dherring [Thu, 6 Apr 2006 23:23:50 +0000 (23:23 +0000)]
Added qtcomm as an external respository to use.

12 years agoAdded support for uploading pictures from the DSP over serial.
dherring [Thu, 6 Apr 2006 23:22:30 +0000 (23:22 +0000)]
Added support for uploading pictures from the DSP over serial.

12 years agoFixed image loading (with snap).
dherring [Wed, 5 Apr 2006 16:12:43 +0000 (16:12 +0000)]
Fixed image loading (with snap).

12 years agoStarted fixing actionLoad to use ImagePool. Still not functional.
dherring [Wed, 5 Apr 2006 05:24:42 +0000 (05:24 +0000)]
Started fixing actionLoad to use ImagePool.  Still not functional.

12 years agoAdding a second frame sped up the processing. No problem with the display... Need...
dherring [Mon, 3 Apr 2006 18:43:37 +0000 (18:43 +0000)]
Adding a second frame sped up the processing.  No problem with the display...  Need to test on older machines/older versions of Qt (using 4.1.1).  Should probably make configurable.

12 years agoBumped up the speed to achieve 30fps capture.
dherring [Mon, 3 Apr 2006 18:33:03 +0000 (18:33 +0000)]
Bumped up the speed to achieve 30fps capture.

12 years agoUpdated NetReceive for the new threading model.
dherring [Mon, 3 Apr 2006 17:25:33 +0000 (17:25 +0000)]
Updated NetReceive for the new threading model.

12 years agoAdded an fps counter.
dherring [Fri, 31 Mar 2006 23:44:10 +0000 (23:44 +0000)]
Added an fps counter.

12 years agoFixed for new threading model.
dherring [Fri, 31 Mar 2006 21:39:14 +0000 (21:39 +0000)]
Fixed for new threading model.

12 years agoReimplemented image processing
dherring [Fri, 31 Mar 2006 20:56:24 +0000 (20:56 +0000)]
Reimplemented image processing

12 years agoFixed NetSend.
dherring [Wed, 29 Mar 2006 20:40:16 +0000 (20:40 +0000)]
Fixed NetSend.
Added bypass to ImageThread.
Decoupled MainWindow and DestinationDialog.

12 years agoNew threading model.
dherring [Wed, 29 Mar 2006 04:39:33 +0000 (04:39 +0000)]
New threading model.

The old model had issues; it was hard to synchronize image passing between threads without needless copying.  ImageSource was calling msleep() and hoping things worked.  It was a mess.

The new model is stylistically cleaner; put an ImagePool between stages of the pipeline and use it to regulate who owns each frame.  Then a few frames can be reused, memory allocation is minimized, and moving pointers are eliminated.

On the upside, things seem to be working a bit faster.  However, image load/save, image processing, and NetSend/Receive are not yet working.  Also, snap() doesn't work 100%.

12 years agoMainWindow.cpp : Used Qt's copy-on-write to protect simplevision from changing pointe...
dherring [Tue, 14 Mar 2006 23:54:08 +0000 (23:54 +0000)]
MainWindow.cpp : Used Qt's copy-on-write to protect simplevision from changing pointers.  If the image pointer changes in simplevision between the two object labelling passes, it can result in invalid object indices and an eventual invalid pointer dereference.

12 years agoFixed an initialization error that could cause a null pointer dereference. Also...
dherring [Tue, 14 Mar 2006 23:05:41 +0000 (23:05 +0000)]
Fixed an initialization error that could cause a null pointer dereference.  Also modified the display contrast to a more reasonable value.

12 years agoFixed the randomly-lit non-object bug.
dherring [Thu, 9 Mar 2006 23:40:34 +0000 (23:40 +0000)]
Fixed the randomly-lit non-object bug.

12 years agosimplevision - more tweaks to hsv2rgb - still needs work.
dherring [Thu, 9 Mar 2006 23:27:12 +0000 (23:27 +0000)]
simplevision - more tweaks to hsv2rgb - still needs work.

12 years agoImprovemed simplevision
dherring [Thu, 9 Mar 2006 22:26:29 +0000 (22:26 +0000)]
Improvemed simplevision

- fixed errors in hsv2rgb
- improved object labeling

12 years agoColorPicker: Fixed to show the actual byte that was clicked on.
dherring [Thu, 9 Mar 2006 21:39:51 +0000 (21:39 +0000)]
ColorPicker:  Fixed to show the actual byte that was clicked on.

12 years agoAdded functionality to load and save image files. Also a bit of debugging code.
dherring [Thu, 9 Mar 2006 21:13:44 +0000 (21:13 +0000)]
Added functionality to load and save image files.  Also a bit of debugging code.

12 years agoFixed the NetReceive bloopers.
dherring [Tue, 7 Mar 2006 22:10:18 +0000 (22:10 +0000)]
Fixed the NetReceive bloopers.

- Hadn't called Q_OBJECT
- Hadn't initialized the QImage
+ Other minor cleanup

12 years agoColorPicker: Corrected conversion of hue from 360 to 256.
dherring [Tue, 7 Mar 2006 21:19:34 +0000 (21:19 +0000)]
ColorPicker: Corrected conversion of hue from 360 to 256.

12 years agoFully removed the color ellipsoid/diamond silliness. Now using the standard color...
dherring [Tue, 7 Mar 2006 21:09:56 +0000 (21:09 +0000)]
Fully removed the color ellipsoid/diamond silliness.  Now using the standard color cube specification with good results (more predictable).

12 years agoReplaced the spinboxes with LCD displays.
dherring [Mon, 27 Feb 2006 19:49:17 +0000 (19:49 +0000)]
Replaced the spinboxes with LCD displays.

Since I don't have time to fix the spinboxes to update properly, this is much less confusing for the user.

12 years agoFixed the mouse click -> display color bug. labelView was still expanding in the...
dherring [Fri, 24 Feb 2006 19:20:35 +0000 (19:20 +0000)]
Fixed the mouse click -> display color bug.  labelView was still expanding in the vertical direction, thus causing an offset between the click location and the pixel sampled.  This also lead to random crashes due to bad pointer dereferences.

12 years agoAdded support for displaying the pixel color when labelView is clicked on. This...
dherring [Fri, 24 Feb 2006 00:38:09 +0000 (00:38 +0000)]
Added support for displaying the pixel color when labelView is clicked on.  This required putting spacers around labelView so events would only be generated when the picture was clicked on.  Seems to be sending the wrong pixel data...

12 years agoFixed ColorPicker::setColor to actually update the RGB sliders.
dherring [Fri, 24 Feb 2006 00:34:47 +0000 (00:34 +0000)]
Fixed ColorPicker::setColor to actually update the RGB sliders.

12 years agoFixed the improper QObject::connect between the UDP port and NetReceive. NetReceive...
dherring [Fri, 24 Feb 2006 00:33:11 +0000 (00:33 +0000)]
Fixed the improper QObject::connect between the UDP port and NetReceive.  NetReceive still doesn't seem to work yet, though.

12 years agoFixed two compile warnings.
dherring [Fri, 24 Feb 2006 00:31:17 +0000 (00:31 +0000)]
Fixed two compile warnings.

12 years agoAdded a memory to ColorPicker so it restores the previous color after cancel has...
dherring [Thu, 23 Feb 2006 20:55:45 +0000 (20:55 +0000)]
Added a memory to ColorPicker so it restores the previous color after cancel has been pressed.

12 years agoSet ColorPicker to stay on top (semi-modal dialog). Added a setColor() slot; in...
dherring [Wed, 22 Feb 2006 23:03:37 +0000 (23:03 +0000)]
Set ColorPicker to stay on top (semi-modal dialog).  Added a setColor() slot; in the future, plug this into keyclicks on the image.

12 years agoAdded my vision processing code (simplevision).
dherring [Wed, 22 Feb 2006 22:37:18 +0000 (22:37 +0000)]
Added my vision processing code (simplevision).

12 years agoAdded support for receiving images over the network. Not receiving any packets yet...
dherring [Tue, 21 Feb 2006 22:55:26 +0000 (22:55 +0000)]
Added support for receiving images over the network.  Not receiving any packets yet...

12 years agoAdded support for streaming images over the network in JPG format.
dherring [Tue, 21 Feb 2006 21:33:38 +0000 (21:33 +0000)]
Added support for streaming images over the network in JPG format.

12 years agoAdded dialog for streaming network destinations.
dherring [Mon, 20 Feb 2006 05:39:02 +0000 (05:39 +0000)]
Added dialog for streaming network destinations.

12 years agoImplemented MainWindow's Start and Snap buttons.
dherring [Mon, 20 Feb 2006 05:01:56 +0000 (05:01 +0000)]
Implemented MainWindow's Start and Snap buttons.

12 years agoYet another syntax error. Oh the opening curly's.
dherring [Mon, 20 Feb 2006 04:45:33 +0000 (04:45 +0000)]
Yet another syntax error.  Oh the opening curly's.

12 years agoAdded an msleep(1) so ImageSource threads will share with others.
dherring [Sun, 19 Feb 2006 20:47:24 +0000 (20:47 +0000)]
Added an msleep(1) so ImageSource threads will share with others.

12 years agoRemoved an old debug statement.
dherring [Sun, 19 Feb 2006 20:46:31 +0000 (20:46 +0000)]
Removed an old debug statement.

12 years agoFixed incorrect signal name (camera->source).
dherring [Sun, 19 Feb 2006 20:45:22 +0000 (20:45 +0000)]
Fixed incorrect signal name (camera->source).
Send source(0) when no camera is selected.

12 years agoEnabled release builds.
dherring [Sun, 19 Feb 2006 20:43:52 +0000 (20:43 +0000)]
Enabled release builds.

12 years agoFixed simple mistake when checking for library availability.
dherring [Sun, 19 Feb 2006 20:13:16 +0000 (20:13 +0000)]
Fixed simple mistake when checking for library availability.

12 years agoFixed Linux behavior.
dherring [Sun, 19 Feb 2006 03:27:29 +0000 (03:27 +0000)]
Fixed Linux behavior.

12 years agoMore progress. Added the essential camera input code. Should start and display video...
dherring [Fri, 17 Feb 2006 22:26:38 +0000 (22:26 +0000)]
More progress. Added the essential camera input code.  Should start and display video, but not working yet.  MainWindow does not appear to be receiving "source" signals from the SourceDialog.

12 years agoMostly fleshed out the user interface. Started developing the code to support multip...
dherring [Fri, 17 Feb 2006 00:21:30 +0000 (00:21 +0000)]
Mostly fleshed out the user interface.  Started developing the code to support multiple image sources.

12 years agoSmall updates. Still figuring out how things work.
dherring [Thu, 16 Feb 2006 21:53:29 +0000 (21:53 +0000)]
Small updates.  Still figuring out how things work.

12 years agoExample color specification.
dherring [Wed, 15 Feb 2006 21:34:46 +0000 (21:34 +0000)]
Example color specification.

12 years agoFixed a dumb typo.
dherring [Wed, 15 Feb 2006 20:50:59 +0000 (20:50 +0000)]
Fixed a dumb typo.

12 years agoFound in the Tekkotsu source tree.
dherring [Wed, 15 Feb 2006 20:49:36 +0000 (20:49 +0000)]
Found in the Tekkotsu source tree.

12 years agoImporting original CMVision files.
dherring [Tue, 14 Feb 2006 20:14:05 +0000 (20:14 +0000)]
Importing original CMVision files.

12 years agoFixed display of color codes and Windows scrollbar icons.
dherring [Tue, 14 Feb 2006 19:27:16 +0000 (19:27 +0000)]
Fixed display of color codes and Windows scrollbar icons.

12 years agoImplemented ColorPicker; the scrollboxes have been disabled for now to avoid event...
dherring [Tue, 14 Feb 2006 14:19:56 +0000 (14:19 +0000)]
Implemented ColorPicker; the scrollboxes have been disabled for now to avoid event loops

12 years agoSeveral changes. Mostly new GUI stuff.
dherring [Mon, 13 Feb 2006 04:06:00 +0000 (04:06 +0000)]
Several changes.  Mostly new GUI stuff.

12 years agoCreating the project skeleton.
dherring [Mon, 13 Feb 2006 01:03:02 +0000 (01:03 +0000)]
Creating the project skeleton.