Luke et al,
I'm new to pygtgraph (and GUIs in general) so you may get a few questions from me. ;-) So far, I've had far better success with pyqtgraph than guiqwt at getting a simple image loaded and displayed in a window, so I'm trying this path first.
I'm putting together an image analysis program, and will want to take profiles across line selections (among other things), so I'm looking through the example scripts to find related code. One of the first items I'm looking at is the Data Slicing example. It won't be exactly the same, but certainly related. When I run the example, I get a window with 2 images (imv1 and imv2), and the top has a line segment ROI already marked. As I understand it, the bottom image should change when I move the line segment ROI. However, that doesn't happen. Am I missing something?
Other questions:
One of my early goals is to have a 2D image displayed, be able to click on the image, have vertical and horizontal line ROIs created (intersecting at the click point), and have 2 1D profiles drawn--one on the right (in place of the histogram) that shows the profile of the vertical ROI, and one at the bottom showing the profile of the horizontal ROI.
- Doable, I assume?
- Should I do this by subclassing the ViewBox, or will the histogram get in the way?
- Better to start from scratch, using the ViewBox as a pattern?
- Or maybe go higher level with an ImageView?
- Any other hints?
Another aspect will be to have 2 images in the same location, and use toolbar buttons to toggle visibility between the two. How best should I do this?
- Two ViewBox-type objects?
- or one ViewBox with 2 GraphicsItems?
- or again, is it better to subclass/use an ImageView?
Don't feel like you need to do it all for me, as struggling through the details will help me learn the API. Thanks for getting me started!
Jim