Images

Sunday, 25 December 2016 · 5 messages · last reply 3 Jan 2017
M
meumapple25 Dec 2016 18:11 #
Hi All, Is there a way to access images in BaseX as sequences of pixels? Thanks. Joseph
CG
Christian Grün2 Jan 2017 11:42 #
Hi Joseph, There is no existing library for accessing image data. I would recommend you to take advantage of one of the various Java libraries. What exactly would you like to do with the image information? Cheers, Christian
Quoted text · meumapple · 6 lines
On Sun, Dec 25, 2016 at 6:11 PM, meumapple <meumapple at gmail.com> wrote: > Hi All, > > Is there a way to access images in BaseX as sequences of pixels? Thanks. > > Joseph
M
meumapple2 Jan 2017 12:14 #
Hi Christian, I recently had to deal with a Python library allowing to convert a png image into a matrix composed of pixel tuples [[(255,255,255), ], ...] which can then be changed and then saved back into png. I found it easy to manipulate it (ie, change colors, dimensions, etc...), so I was thinking that something similar in XQuery would be helpful for those working with images. Cheers, J.
Quoted text · Christian Grün · 1 line
Il giorno 02 gen 2017, alle ore 11:42, Christian Grün <christian.gruen at gmail.com> ha scritto:
Hi Joseph, There is no existing library for accessing image data. I would recommend you to take advantage of one of the various Java libraries. What exactly would you like to do with the image information? Cheers, Christian
Quoted text · meumapple · 6 lines
> On Sun, Dec 25, 2016 at 6:11 PM, meumapple <meumapple at gmail.com> wrote: > Hi All, > > Is there a way to access images in BaseX as sequences of pixels? Thanks. > > Joseph
TT
Tim Thompson2 Jan 2017 16:36 #
Joseph, This thread from the xml-dev list might be of interest to you: http://lists.xml.org/archives/xml-dev/201612/msg00004.html. It discusses DFDL (Data Format Description Language), an XML schema used in parsing binary files (http://dfdlschemas.github.io/).
-- Tim A. Thompson Metadata Librarian (Spanish/Portuguese Specialty) Princeton University Library
Quoted text · meumapple · 36 lines
On Mon, Jan 2, 2017 at 6:14 AM, meumapple <meumapple at gmail.com> wrote: > Hi Christian, > > I recently had to deal with a Python library allowing to convert a png > image into a matrix composed of pixel tuples [[(255,255,255), ], ...] which > can then be changed and then saved back into png. I found it easy to > manipulate it (ie, change colors, dimensions, etc...), so I was thinking > that something similar in XQuery would be helpful for those working with > images. > > Cheers, > J. > > Il giorno 02 gen 2017, alle ore 11:42, Christian Grün < > christian.gruen at gmail.com> ha scritto: > > Hi Joseph, > > There is no existing library for accessing image data. I would > recommend you to take advantage of one of the various Java libraries. > > What exactly would you like to do with the image information? > > Cheers, > Christian > > > > > > On Sun, Dec 25, 2016 at 6:11 PM, meumapple <meumapple at gmail.com> wrote: > > Hi All, > > > > Is there a way to access images in BaseX as sequences of pixels? Thanks. > > > > Joseph >
M
meumapple3 Jan 2017 09:29 #
Thanks Tim, this seems very useful. I have not been able, however, to find the DFDL schema the author of the thread talks about. Best, Joseph
Quoted text · Tim Thompson · 1 line
Il giorno 02 gen 2017, alle ore 15:35, Tim Thompson <timathom at gmail.com> ha scritto:
Joseph, This thread from the xml-dev list might be of interest to you: http://lists.xml.org/archives/xml-dev/201612/msg00004.html. It discusses DFDL (Data Format Description Language), an XML schema used in parsing binary files (http://dfdlschemas.github.io/).
-- Tim A. Thompson Metadata Librarian (Spanish/Portuguese Specialty) Princeton University Library
Quoted text · meumapple · 29 lines
> On Mon, Jan 2, 2017 at 6:14 AM, meumapple <meumapple at gmail.com> wrote: > Hi Christian, > > I recently had to deal with a Python library allowing to convert a png image into a matrix composed of pixel tuples [[(255,255,255), ], ...] which can then be changed and then saved back into png. I found it easy to manipulate it (ie, change colors, dimensions, etc...), so I was thinking that something similar in XQuery would be helpful for those working with images. > > Cheers, > J. > > Il giorno 02 gen 2017, alle ore 11:42, Christian Grün <christian.gruen at gmail.com> ha scritto: > > Hi Joseph, > > There is no existing library for accessing image data. I would > recommend you to take advantage of one of the various Java libraries. > > What exactly would you like to do with the image information? > > Cheers, > Christian > > > > > > On Sun, Dec 25, 2016 at 6:11 PM, meumapple <meumapple at gmail.com> wrote: > > Hi All, > > > > Is there a way to access images in BaseX as sequences of pixels? Thanks. > > > > Joseph

⚡Generated with XQuery