Experimental Physics and Industrial Control System
|
Kay,
Thanks -- this was really confusing me. Convention and tradition to make for interesting bedfellows. I'm more surprised that I haven't run into this one before.
Josh EC
Thanks all -- much clarification.
I'd say this should probably be clarified in the next documentation workshop somewhere as convention, as ordering in matrix-handling libraries seems to be non-existent. I'm including OpenCV and PIL in this with their different RGB and BGR defaults. We're using Eigen for some manipulations, which supports both row- and column-major data storage, but defaults to column-major. Having it based on codec definitely makes sense for images, though.
Appreciate the quick replies, Josh EC
Hi Josh,
The text you quote is from the description of an NTMatrix. That is not the normative type used by the areaDetector NDPluginPva plugin or the ImageJ viewer. They use the NTNDArray normative type, which can have any number of dimensions. AD uses the normal
convention for image data which has the first dimension being the number of columns and the second being the number of rows, e.g. a 1920x1200 monitor is [columns, rows].
Mark
Sent from my iPhone
Hi all,
We're doing some work using PVXS and debugging using the ImageJ AD plugins, and I'm finding something that just doesn't make sense to me. Here's the run down:
" A dim] of 2 elements describes a matrix, where the first element of dim gives the number of rows, and the second element of dim gives the number columns."
When I set my array up and then send the image to the ImageJ NTNDA_Viewer plugin, I find that dims[0] is the x-axis, while dims[1] is the y-axis, which is the opposite of what I'd expect given the normative type specification.
Just curious if anyone else has run into this, or if I'm missing something obvious.
- References:
- ImageJ AD Plugins and PVXS Joshua Einstein-Curtis via Tech-talk
- Re: ImageJ AD Plugins and PVXS Mark Rivers via Tech-talk
- Re: ImageJ AD Plugins and PVXS Joshua Einstein-Curtis via Tech-talk
- Navigate by Date:
- Prev:
Re: ImageJ AD Plugins and PVXS Joshua Einstein-Curtis via Tech-talk
- Next:
asyn master, base 7.0.3 build error from devAsynXXXArray.cpp John Dobbins via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
<2024>
- Navigate by Thread:
- Prev:
Re: ImageJ AD Plugins and PVXS Joshua Einstein-Curtis via Tech-talk
- Next:
OMS MAXnet whitetiger1123 via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
<2024>
|
ANJ, 11 Sep 2024 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|