Before Origin 2024b, users would need to convert image to matrix before plotting it.
In Origin 2024b, users can directly plot applicable graphs such as histogram, contour, etc. from image window.
To plot a subregion, use the Rectangle, Circle, Polygon or Region toolbar button to draw the Region of Interest (ROI) on image, right-click on ROI, then choose Crop (or Create Linked Image to create a new image window of the subregion). Plot from there. Multiple ROIs are supported in image windows.