Can't you check the entire pixel value of the image array in python opencv?

Asked 2 years ago, Updated 2 years ago, 43 views

In matlab, the matrix element values of each variable can be immediately checked.

When the image was loaded into the read, it was easy to check the values for each pixel, and

When I opened it with the imshow, I could immediately check the coordinate values and pixel values in the coordinates.

I don't know how to check the values after moving to Python.

I can't display the image, I can't clear it, I can't see the window to check the arrangement.

python opencv

2022-09-22 14:42

1 Answers

First of all, matlab should be called environment.

Matlab is language + idea + plot etc...Python is just language if it's a gift box-like environment for research. This is not the same environment as matlab.

So you can't create the same environment as matlab. You can do it similarly, but you can't do it like you did in matlab. Rather, if you get used to it, the Python ecosystem can be more comfortable.

First of all, I use jupyter notebook a lot, and I use matplotlib and seaborn a lot for plot. Image processing utilizes opencv, uses a module called numpy for linear algebra, and more intensively uses a module called scipy.

The module that can perform calculation similar to matlab is numpy. Loading an image with opencv is an array of numpy, so it is easy to calculate and check. Of course, it doesn't automatically become something. Programming is required.

This is the best.


2022-09-22 14:42

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.