qimage Questions
4
Solved
I'm pretty new to C++/Qt and I'm trying to create an application with Visual Studio C++ and Qt (4.8.3). The application displays images using a QGraphicsView, I need to change the images at pixel l...
Gosser asked 26/11, 2012 at 23:2
4
Solved
9
I am trying to convert python opencv image to QPixmap.
I follow the instruction shows Page Link and my code is attached below
img = cv2.imread('test.png')[:,:,::1]/255.
imgDown = cv2.pyrDown(img...
11
I am wondering how would I convert the OpenCV C++ standard cv::Mat type to QImage. I have been searching around, but have no luck. I have found some code that converts the IPlimage to QImage, but t...
5
Solved
Are there any known size/space limitation of QPixmap and/or QImage objects documented? I did not find any useful information regarding this. I'm currently using Qt 4.7.3 on OSX and Windows. Particu...
5
Solved
I'm working on program which shows users some picture they select. I would like to fit this picture in QGraphicsView's frame, but the picture appears smaller than the frame.
So here's my code:
imag...
Raconteur asked 10/6, 2013 at 16:32
2
Solved
I am trying to pass a QImage to QML. Could someone help me? The code is below.
The problem is that all my attempts to make the image available for the image provider fail. I have tried using a Q_P...
3
Solved
I am trying to create QByteArray from QImage, however although I tried lots of varient, I couldn't handle it.
What I am doing is :
QImage img_enrll; // <--- There is an image coming from ano...
Tees asked 7/12, 2014 at 14:20
4
Solved
I suppose this is more of a graphics manipulation question in general, but I'd like to accomplish this in Qt (c++). If I have an image - let's just say a circle on a transparent background - of a l...
4
I want to get every frames from a QMediaPlayer and convert it to QImage (or cv::Mat)
so I used videoFrameProbed signal from QVideoProbe:
connect(&video_probe_, &QVideoProbe::videoFramePro...
4
Solved
I want to extract RGB from each pixel in QImage. Ideally, I want to use the img.bits() function.
QImage img;
if( img.load("Red.jpg") )
{
uchar *bits = img.bits();
for (int i = 0; i < 12; i+...
2
Solved
I am quite new to Qt. I am having troubles in inserting a QImage to a scene. Could somebody please tell me how to add a QImage to a QGraphicsScene?
Jeopardize asked 11/5, 2011 at 6:22
3
Solved
I'm trying to insert an image to my program via resource file, which is like:
<RCC>
<qresource prefix="/">
<file>green.png</file>
<file>other files</fi...
Searby asked 14/7, 2015 at 12:2
1
Solved
I have a code that manipulates and renders a QImage onto a QWidget. Manipulation includes typical homogeneous transformations as well as clipping, applying a color-transfer function, etc.
Now I ha...
Iosep asked 9/7, 2019 at 12:10
1
Solved
I'm trying to show an opencv image with a QLabel. I got two different versions of the image, first one is the opencv BGR image, the second one is the RGB image using image[:,:,::-1], the BGR versio...
2
Solved
Related to my other question, I think the more central question would be, how you render a QImage with OpenGL?
I think the code has to look something like this, but I'm not sure what else I need, ...
Reinold asked 27/11, 2013 at 15:3
5
Solved
I do not understand what is the difference between QImage and QPixmap, they seem to offer the same functionality. When should I use a QImage and when should I use a QPixmap?
1
Solved
Scenario:
I have an Image component in QML which contains a QImage of varied aspect ratios.
Code:
Window {
id: app_window
visible: true
Rectangle {
id: my_image_view_container
width: app_w...
4
Solved
I have a QImage and I need to convert it to grayscale, then later paint over that with colors. I found an allGray() and isGrayScale() function to check if an image is already grayscale, but no toGr...
2
Solved
I'm working with tif stacks and QImage appears to be skewing some images to a 45 degree angle. Matplotlib is able to display the images without a problem in both test cases (links to two tif stacks...
Build asked 11/1, 2017 at 17:21
3
Solved
I would like to have a background image in my QGraphicsView that is always scaled (and cropped if necessary) to the size of the viewport, without scrollbars and without scrolling with the keyboard ...
Rhododendron asked 22/3, 2010 at 2:47
12
Solved
I'm trying to use a JPEG image in a QImage object from a Python script, with PyQt4.
The script itself works perfectly, the image loads and can be manipulated and rendered and all. However, when I...
6
I am trying to create an application where I am trying to integrate opencv and qt.
I managed successfully to convert a cv::Mat to QImage by using the code below:
void MainWindow::loadFile(const Q...
1
Solved
New to PyQt5... Here is a very basic question.
I would like to add an image inside the layout of a widget. This widget is the Main Window / root widget of my application. I use the following code,...
Richers asked 16/2, 2016 at 2:14
1
Solved
I have written a small GUI using PyQt4 that displays an image and gets point coordinates that the user clicks on. I need to display a 2D numpy array as a grayscale, so I am creating a QImage from t...
Spin asked 30/10, 2015 at 21:21
1 Next >
© 2022 - 2024 — McMap. All rights reserved.