Hello
With guiqwt I display CCD camera images.Hi Gilles,
I’m not exactly sure what you are asking in regards to the zoom tool but if your goal is to display your image in the same resolution as your ccd you should only need to set the image parameters (ImageParam and ImageAxesParam) of your image Item when you first create your image, I wrote the following to do this:
def set_image_parameters(self, imgItem, xmin, xmax, ymin, ymax):
ImageParam:
Image title: Image
Alpha channel: False
Global alpha: 1.0
Colormap: gist_gray
Interpolation: None (nearest pixel)
_formats:
X-Axis: %.1f
Y-Axis: %.1f
Z-Axis: %.1f
Background color: #000000
_xdata:
x|min: -
x|max: -
_ydata:
y|min: -
y|max: -
"""
iparam = ImageParam()
iparam.xmin = xmin
iparam.ymin = ymin
iparam.xmax = xmax
iparam.ymax = ymax
self.zoom_rngx = float(xmax - xmin)
self.zoom_rngy = float(ymax - ymin)
axparam = ImageAxesParam()
axparam.xmin = xmin
axparam.ymin = ymin
axparam.xmax = xmax
axparam.ymax = ymax
imgItem.set_item_parameters({"ImageParam":iparam})
imgItem.set_item_parameters({"ImageAxesParam":axparam})
hope it helps,
-Russ
--
You received this message because you are subscribed to the Google Groups "guidata/guiqwt" group.
To unsubscribe from this group and stop receiving emails from it, send an email to guidata_guiqw...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.