2020-03-24 04:49:22 -0600 | received badge | ● Notable Question (source) |
2018-07-23 10:30:46 -0600 | received badge | ● Popular Question (source) |
2017-10-01 00:28:40 -0600 | received badge | ● Student (source) |
2016-12-03 11:52:43 -0600 | commented question | Data-array "organisation" of image Mat. (Mat->GIF) @berak It works. OMG. Thank you so much! Just for the record though, what exactly are all the things that are wrong with my loop :D? |
2016-12-03 11:24:10 -0600 | commented question | Data-array "organisation" of image Mat. (Mat->GIF) @berak Right, just noticed that too - Thanks! I actually tried converting it now, but failed horribly at doing so (Stack Overflow error)... I'll put the code I wrote in my post. |
2016-12-03 09:10:18 -0600 | asked a question | Data-array "organisation" of image Mat. (Mat->GIF) I'm trying to export some frames as a GIF by using this library: https://github.com/ginsweater/gif-h Unfortunately, it seems that the char-array the library requires for each frame is ordered differently than Mat#data. Which led me to memory errors when trying to simply pass the Mat-data-array as argument. I did read the documentation of "Mat", but can't say that I truly understood, and thus don't know how to properly convert it. I tried to convert it like this: Where I get a stackoverflow error when allocating the uint8_t array. I know that the array is ridiculously big, but I'm not sure how to approach this problem otherwise. Help appreciated, thanks! |
2015-03-05 04:03:14 -0600 | received badge | ● Enthusiast |
2015-02-28 11:19:55 -0600 | commented question | Merge two Mat-Objects in OpenCV @berak Thanks, I guess that will solve the problem. Still, it would be awesome to know what the pixel-array contains, just in case I'd have to perform some edits on it. |
2015-02-28 08:57:20 -0600 | commented question | Merge two Mat-Objects in OpenCV @berak Thanks for the answer, I'll try it out. What exactly is Mat.type()? And if it is different, can I somehow convert it to be, well, equal (That's why I'd have liked pixel-looping, to be able to control everything)? And what if I want, for Example, to draw on a frame? Then I'd need the pixel-changing, don't I (And if yes, how is the pixel-array organized? Would be cool to know.)? (Ok, I checked the types, thing is that the types of my two images ARE different, mainly probably because one image is a frame of a video while the other is a real image) |
2015-02-28 08:42:14 -0600 | received badge | ● Editor (source) |
2015-02-28 08:42:01 -0600 | asked a question | Merge two Mat-Objects in OpenCV I wrote a little function in order to be able to "stick" the pixels of an image on top of another, but it somehow doesnt work: While the "shapes" of my "sticked" image is right, the colors are not. The example flower is the first image, and as a second image I had a black trapezoid png. As you can see, there are multiple problems: 1. The colors are shown weirdly. Actually there are no colors, just greyscale, and some weird stripes as overlay. 2. Alpha values are not respected. The white part of the overlay image is transparent in the png. Here is my code: The commented code was another approach, but had the same results. So, here are my questions:
(I already asked this question on stackoverflow, but I guess it's better to ask it here.) |