Commit Graph

2317 Commits

Author SHA1 Message Date
Ibrahim Abd Elkader
8c4525b93d
Merge pull request #330 from kwagyeman/master
Add flood fill
2018-04-06 15:11:01 +02:00
Kwabena W. Agyeman
7f798a8282 Add flood fill
The algorithm itself is setup to be used for future filters.
2018-04-06 00:20:19 -04:00
iabdalkader
82ff7a250e Add H7 DAC support. 2018-04-06 01:08:34 +02:00
iabdalkader
6cd715bf96 Reduce HW JPEG timeout.
* Avoid getting stuck when there's an overflow (abort seems useless).
2018-04-04 16:06:58 +02:00
iabdalkader
aa53cf2352 Support H7 hardware JPEG encoder. 2018-04-03 22:08:53 +02:00
Ibrahim Abd Elkader
6877b3afe6
Merge pull request #329 from kwagyeman/master
Random Library Fixes
2018-04-03 22:10:01 +02:00
Kwabena W. Agyeman
7bd8fe45fd Add masking support to replace. 2018-04-01 17:15:28 -04:00
Kwabena W. Agyeman
c4e40f9a36 Fix image pixel access methods to be safer. 2018-04-01 16:56:09 -04:00
Kwabena W. Agyeman
311607f02b Add masking support to binary. 2018-04-01 16:55:42 -04:00
Kwabena W. Agyeman
6436eb15dc Normalize bilteral filter sigma values.
Its easy to pick sigma now and it works great. Features get nice and
smooth.
2018-04-01 15:54:43 -04:00
Kwabena W. Agyeman
6e02030cbc Add contrast limited adaptive histogram equalization.
This method is fast and super useful.
2018-04-01 15:33:30 -04:00
Ibrahim Abd Elkader
11a9610902
Merge pull request #328 from kwagyeman/master
More image filtering stuff
2018-04-01 17:46:02 +02:00
iabdalkader
c14e0e809d Minor fixes to ADC code. 2018-04-01 17:40:12 +02:00
Kwabena W. Agyeman
09c9d97a70 Add bilateral filtering support
Runs faster than median filtering with a large kernel size. That said,
if sigma is set to low for the particular scene you can get corrupted
pixels if there's too much change in a particular kernel area. Tried a
few things to filter this out but was not successful. Not sure how to
fix... but, turning the sigma up hides the issue. It has something to do
with zeros in the luts used to speed the algorithm up causing
instability.
2018-04-01 00:56:41 -04:00
Kwabena W. Agyeman
c3c40680f5 Add missing binary image filtering functionality
Open/Close/TopHat/BlackHat/MorphMethods/Etc.
2018-03-31 15:06:20 -04:00
iabdalkader
2ddb4510e6 Add H7 ADC support. 2018-03-31 20:41:38 +02:00
iabdalkader
fac6f19b75 Increase the JPEG quality threshold for H7. 2018-03-30 14:42:59 +02:00
iabdalkader
fcdeb09283 Update MP. 2018-03-27 20:57:10 +02:00
iabdalkader
e9286f6a85 Fix OMV2 build. 2018-03-27 20:41:54 +02:00
iabdalkader
870ce65c51 Merge H7 SRAM1 and SRAM2. 2018-03-27 20:41:26 +02:00
iabdalkader
965e7e1529 Move JPEG buffer to SRAM3. 2018-03-27 20:40:06 +02:00
iabdalkader
ee2aab62be Add IMLIB_ENABLE_FAST to imlib config. 2018-03-27 03:47:28 +02:00
iabdalkader
ef3faa3df7 Move AprilTags qsort to separate file.
* Needed by F4 build.
2018-03-26 20:50:51 +02:00
iabdalkader
bbb5b8dda0 Update F4 HAL. 2018-03-26 20:39:10 +02:00
iabdalkader
fabe9cf292 Fix H7 HAL strict aliasing errors (patch from MP/stm32lib). 2018-03-26 20:38:45 +02:00
Ibrahim Abd Elkader
2541e0fd26
Merge pull request #327 from kwagyeman/master
Fix bug with sharpen.
2018-03-26 20:21:24 +02:00
Kwabena W. Agyeman
a05daabf5b Fix bug with sharpen.
Wayyy too much gain before.
2018-03-26 01:24:24 -04:00
iabdalkader
6a3eb2814d Mount FLASH FS if SD card fails to mount. 2018-03-25 01:34:55 +02:00
iabdalkader
eef37ce696 Avoid 64-bit integer division in LPUART. 2018-03-25 01:08:43 +02:00
iabdalkader
e3f08179fb Update MP. 2018-03-25 00:57:38 +02:00
iabdalkader
9e1401add6 Update F7 HAL. 2018-03-25 00:57:23 +02:00
iabdalkader
0a5d4525bc Add H7 DCMI cache maintenance. 2018-03-24 03:31:41 +02:00
iabdalkader
dfe67393dc Move H7 DMA buffers to AXI memory.
* SD can only access AXI memory.
2018-03-24 03:30:44 +02:00
iabdalkader
39373f2950 Update linker script. 2018-03-24 03:30:32 +02:00
iabdalkader
014942a75b Fix bootloader version. 2018-03-24 00:45:32 +02:00
iabdalkader
f5a30c5301 Implement bootloader V2 flash layout command. 2018-03-23 00:14:55 +02:00
iabdalkader
34010c62a8 Merge F7 SRAM1 and SRAM2. 2018-03-22 23:54:10 +02:00
iabdalkader
006225c2f3 Fix USB issues on Windows. 2018-03-21 21:30:46 +02:00
Ibrahim Abd Elkader
9416ec00d1
Merge pull request #326 from kwagyeman/master
Add scalar support
2018-03-20 19:16:28 +02:00
Kwabena W. Agyeman
efe69c961d Add support for scalar operations
This brings all our basic operations code up to spec with other image
library offers.

Anyway, you can now pass a "color" value as the parameter to a basic op
method and it will apply that value to all pixels in the image.
2018-03-20 03:31:24 -04:00
Kwabena W. Agyeman
ed795c4fce Fix possible stack smashing issue.
User could pass too large a kernel size and crash their camera without a
nice error messages.
2018-03-20 00:52:55 -04:00
iabdalkader
e7dff016f6 Enable MDMA driver. 2018-03-19 14:58:23 +02:00
iabdalkader
88826bb414 Disable H7 SD transceiver. 2018-03-19 14:51:18 +02:00
Ibrahim Abd Elkader
f819f29f99
Merge pull request #325 from kwagyeman/master
Improved image filtering operations
2018-03-19 14:48:22 +02:00
Kwabena W. Agyeman
74c892abd6 Fixed morph edge methods.
Redcued noise being injected. Looks a lot better now.
2018-03-19 02:41:23 -04:00
Kwabena W. Agyeman
3342f68ca2 Fixed Divide by zero
Saw this floating around.
2018-03-18 22:10:57 -04:00
Kwabena W. Agyeman
d7159fba3e Upate filtering operations
Binary images are now handled. Cleaned up and optimized code. Some speed
gains after shifting to multiplies and not using int8_t.

Added a sharp and unsharp mask feature. Fixed up guassian. Added a
laplacian operation for edge detection.
2018-03-18 22:06:03 -04:00
iabdalkader
93f82440f2 Enable MDMA clock. 2018-03-17 01:25:15 +02:00
Ibrahim Abd Elkader
be6de2e467
Merge pull request #324 from kwagyeman/master
Add the ability to pull higher scaled text kerning in...
2018-03-17 00:04:01 +02:00
iabdalkader
97b2bb8bb2 Enable delayblock. 2018-03-16 20:48:35 +02:00