You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacv
I'm reading a JPEG image into a byte array (byte[]). What I need to do is to decode it, resize it, and then re-encode it. I'm new to opencv and javacv. Can someone point me to where I might find some simple code to do this? I am currently doing it with ImageIO but am having issues with JPEG decoding time and want to see if javacv does a better job at decoding the JPEG in less time. Thanks, David
Samuel Audet
unread,
Mar 28, 2017, 11:48:41 PM3/28/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacv
Thanks, this helps. One thing I haven't figured out yet is how to take my JPEG that is in a byte array (byte[]) and create a Mat object that I can then send to the imdecode routine? David
Samuel Audet
unread,
Mar 29, 2017, 10:21:29 AM3/29/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jav...@googlegroups.com
Just call `new Mat(byte[])`, that will do what we need it to do.
Samuel
David Robison
unread,
Mar 29, 2017, 11:31:16 AM3/29/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to javacv
Thanks. If there is an error in imdecode such that it returns mat::data == null, is there a way to retrieve what error was seen? David
Samuel Audet
unread,
Mar 29, 2017, 11:23:32 PM3/29/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message