kasemir / org.csstudio.display.builder

Update of org.csstudio.opibuilder.*
Eclipse Public License 1.0
2 stars 10 forks source link

Image ROI issue #545

Closed MaticPogacnik closed 5 years ago

MaticPogacnik commented 5 years ago

Hi,

I have problem with ROI selection on Image widget. 0 of Y axis starts on the bottom not top as it was in the opi. This means if you link PVs from AD ROI plugin directly to "Y PV" and "Height PV " property you get wrong selection. But its interesting, image is displayed correctly. Was this done intentional?

Thank you,

2 1

kasemir commented 5 years ago

The ROI PVs use the same coordinate system as the Y axis. In your screenshot, the Y axis is configured with a minimum .. maximum of 0 .. ~1000. If you want the 0 to be on top, swap the Y axis range to be 1000 .. 0.

MaticPogacnik commented 5 years ago

Yes this was the issue. Thank you!

kasemir commented 5 years ago

Are these auto-converted files, like *.opi files opened in the display builder without further changes -> Then we should update the display builder to swap the axis range accordingly

Or were these displays newly created? -> Yes, the default is 0 at bottom for images, just like 0 is at bottom for XY plots. We had brief discussions locally about that when creating the display builder, and local users found it more natural to have the "normal" plot axis layout, not the computer science idea that images have 0 on top because that's where the memory array has index [0].