Questions tagged [imshow]

The imshow is a function from the matplotlib library that displays an image on the axes.

The is a function from the library that displays an image on the axes.

References:

See also:

806 questions
-1
votes
1 answer

How to display matrices from a 3D cv::Mat array via imshow using Opencv in C++

I have an array of images as follows: int width = 5, height = 4, n = 3; // example --> 3 images of size 5x4 int sz[] = {width, height, n}; cv::Mat array(3, sz, CV_8UC1, cv::Scalar::all(0)); Now I would like to display the images. I tried something…
jkl
  • 93
  • 2
  • 11
-1
votes
1 answer

Matlab GUI axes extract position from datacursor

hope anyone can help me. I try to load and display a image in my GUI. After that i activate datacursormode. Now I want to extract the position from my datacursor object and save the informations into a global variable to work on this data. Here is…
AngelsEnd
  • 43
  • 5
-1
votes
1 answer

Matplotlib crash in gui

I would like to draw a matrix with imshow with tkinter in a gui. The problem is that after further updates, the gui crash. I don't manage to find answer on the web. You could help me please? The code: from numpy import * from Tkinter import * import…
charette
  • 1
  • 2
-2
votes
1 answer

Matplotlib imshow is ignoring cmap, vmin, vmax for ax.imshow subplots

I am trying to make subplots of small images of data and I am finding it completely impossible to adjust the cmap/vmin/vmax for any of these images. No matter what I can't figure out how to change the colour map and the limits, I don't have any idea…
-2
votes
1 answer

Can I display 2 images at the same time at python?

I'm working now with image processing and for debugging I want to see both the image before processing and after. I'm using pycharm. Can I display 2 images, one at a window, at the same time?
vered
  • 19
  • 5
-3
votes
1 answer

C++ program hangs on imshow command

I have some C++-Code which for some reason keeps hanging. This is the code: using namespace std; using namespace cv; int main(int argc, char** argv) { cout <<"started"; Mat im(256, 256, CV_8UC1, cv::Scalar(255)); for (int j = 0; j < 255; j++) { …
user1862770
  • 307
  • 1
  • 4
  • 13
-4
votes
1 answer

What is wrong in this code as it is not giving output picture?

The code is not giving the output picture import numpy as np import cv2 as cv img = cv.imread('Picture1.jpg',0) cv.imshow('image',img) cv.waitKey(0) cv.imwrite('Picture1.jpg',img) cv.destroyAllWindows()
-7
votes
1 answer

How to change colors on my Python's cv2 diagram

I have this piece of code that draws a meter for a given percentage value. How can I change it to get two parameters for bottom color and top color (i.e. a shade from color1 to color2, like light green to dark green in this example). Also, a x, y…
Tina J
  • 4,983
  • 13
  • 59
  • 125
1 2 3
53
54