跟a.0相比,a.1主要改了一个地方,就是把读取图片改成读取视频帧;
capture = cvCreateFileCapture(VideoAddr);	//这四句就是第一部分的改动,在main函数里面
int frames = (int)cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_COUNT);
frame = cvQueryFrame(capture);
picture_remap.rgbImg = cvarrToMat(frame);//picture_remap.rgbImg = imread("4k.jpg");

a.1完整代码:

#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2\opencv.hpp> 
#include <opencv2\core\opengl.hpp>
#include <iostream>
#include <Windows.h>
#include <vector>
#include <stdio.h>
#include "conio.h"
#include <opencv2/cudawarping.hpp>
//#include <opencv2/cudaarithm.hpp>#define __STDC_CONSTANT_MACROSextern "C"
{
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
#include "libavutil/imgutils.h"
#include "SDL.h"//
};#include <GLTools.h>	// OpenGL toolkit
#include <GLMatrixStack.h>
#include <GLFrame.h>
#include <GLFrustum.h>
#include <GLGeometryTransform.h>
#include <StopWatch.h>#include <math.h>
#include <stdlib.h>
#include <GL/gl.h>#ifdef __APPLE__
#include <glut/glut.h>
#else
#include <GL/glut.h>
#endif
//
CvCapture * capture = NULL;
char * VideoAddr = "zzz.mp4";
IplImage * frame;
#define ESC 27
#define PAUSE 32//
GLFrame             viewFrame;
GLFrustum           viewFrustum;
GLBatch             cubeBatch;
GLMatrixStack       modelViewMatrix;
GLMatrixStack       projectionMatrix;
GLGeometryTransform transformPipeline;
GLuint              cubeTexture;
GLint               skyBoxShader;GLint               locMVPReflect, locMVReflect, locNormalReflect, locInvertedCamera;
GLint				locMVPSkyBox;//Refresh Event
#define SFM_REFRESH_EVENT  (SDL_USEREVENT + 1)
#define SFM_BREAK_EVENT  (SDL_USEREVENT + 2)using namespace std;
using namespace cv;#ifndef M_PI
#define M_PI 3.14159265358979323846
#endifMat warpMat1[6], warpMat2[6], dst[6];
Mat warpMat[6];
cv::cuda::GpuMat src[2], wM1[6], wM2[6];
cv::cuda::Stream src_stream[2];
ogl::Buffer wBuf[6];DWORD start_time, start_time_1, end_time;LARGE_INTEGER nFreq;
LARGE_INTEGER nBeginTime;
LARGE_INTEGER nEndTime;struct RGB_pic    //存储修改前文件 yuv->RGB
{cv::Mat rgbImg;int length;int height;} picture_remap;struct convert_map  //存6个面的数组
{cv::Mat face[6];} cvtmap;//SDLSDL_Window *screen;SDL_Renderer* sdlRenderer;SDL_Texture* sdlTexture;SDL_Rect sdlRect;
//Parameters	SDL_Thread *video_tid;SDL_Thread *pic[6];SDL_Event event;SDL_AudioSpec wanted_spec;//下面是线程参数int handle[6] = { 0,1,2,3,4,5 };//下面是文件参数 需要修改FILE* pFileIn;int w = 1920;int h = 1080;cv::Mat yuvImg;int bufLen = w*h * 3 / 2;unsigned char* pYuvBuf = new unsigned char[bufLen];Mat dstImg, dst1Img;unsigned char *pBytes;template <typename T>            //176-278 不要动  变换
inline T square(const T x)
{return x * x;
}template <typename T>
inline T clamp(const T& x, const T& a, const T& b)
{return x < a ? a : x > b ? b : x;
}enum CubemapFace
{CUBEMAP_FACE_BACK,CUBEMAP_FACE_LEFT,CUBEMAP_FACE_FRONT,CUBEMAP_FACE_RIGHT,CUBEMAP_FACE_TOP,CUBEMAP_FACE_BOTTOM
};GLenum  cube[6] =
{GL_TEXTURE_CUBE_MAP_POSITIVE_X,GL_TEXTURE_CUBE_MAP_NEGATIVE_X,GL_TEXTURE_CUBE_MAP_POSITIVE_Y,GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,GL_TEXTURE_CUBE_MAP_POSITIVE_Z,GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
};inline Vec3f cubemapIndexToVec3(const float x, const float y, const CubemapFace face)
{// rotate and flip the direction as a function of the faceVec3f dir(x, y, 0.5f);Vec3f dirOut = dir;switch (face) {case CUBEMAP_FACE_BACK:dirOut[0] = dir[0];dirOut[1] = dir[2];dirOut[2] = -dir[1];break;case CUBEMAP_FACE_LEFT:dirOut[0] = -dir[2];dirOut[1] = dir[0];dirOut[2] = -dir[1];break;case CUBEMAP_FACE_TOP: break; // no-opcase CUBEMAP_FACE_BOTTOM:dirOut[0] = dir[0];dirOut[1] = -dir[1];dirOut[2] = -dir[2];break;case CUBEMAP_FACE_FRONT:dirOut[0] = -dir[0];dirOut[1] = -dir[2];dirOut[2] = -dir[1];break;case CUBEMAP_FACE_RIGHT:dirOut[0] = dir[2];dirOut[1] = -dir[0];dirOut[2] = -dir[1];break;}return dirOut;
}void mapEquirectToCubemapCoordinate(const float x,const float y,const CubemapFace& face,const Mat& srcEqrMat,const float fisheyeFovRadians,float& srcX,float& srcY)
{const Vec3f dir = cubemapIndexToVec3(x, y, face);const float r = sqrtf(square(dir[0]) + square(dir[1]));const float phi = acosf(dir[2] / norm(dir));float theta = r > 0.0f ? acosf(fabs(dir[0] / r)) : 0.0f;if (dir[0] > 0 && dir[1] > 0) { // Quadrant I// (nothing to do)}else if (dir[0] <= 0 && dir[1] > 0) { // Quadrant IItheta = M_PI - theta;}else if (dir[0] <= 0 && dir[1] <= 0) { // Quadrant IIItheta = M_PI + theta;}else { // Quadrant IVtheta = 2 * M_PI - theta;}const float phiPrime = clamp(phi, 0.0f, fisheyeFovRadians);const float thetaPrime = clamp(theta, 0.0f, float(2.0f * M_PI));srcX = float(srcEqrMat.cols) * thetaPrime / (2.0f * M_PI);srcY = float(srcEqrMat.rows) * phiPrime / fisheyeFovRadians;
}int wid = 512;
int MatInit()  //不要动
{CubemapFace face;//img sizewid = sqrtf((float(picture_remap.rgbImg.cols) * float(picture_remap.rgbImg.rows)) / 6)+0.5;const float dy = 1.0f / float(wid);const float dx = 1.0f / float(wid);for (int ii = 0; ii < 6; ii++){warpMat1[ii] = Mat(Size(wid, wid), CV_32FC1);warpMat2[ii] = Mat(Size(wid, wid), CV_32FC1);warpMat[ii] = Mat(Size(wid, wid), CV_32FC2);//cv::ogl::Buffer::TargetwBuf[ii].create(Size(wid, wid), picture_remap.rgbImg.type(), ogl::Buffer::Target::PIXEL_UNPACK_BUFFER);switch (ii){case 0:face = CUBEMAP_FACE_RIGHT;break;case 1:face = CUBEMAP_FACE_LEFT;break;case 2:face = CUBEMAP_FACE_TOP;break;case 3:face = CUBEMAP_FACE_BOTTOM;break;case 4:face = CUBEMAP_FACE_BACK;break;case 5:face = CUBEMAP_FACE_FRONT;break;}for (int j = 0; j < wid; ++j){for (int i = 0; i < wid; ++i){float srcX;float srcY;mapEquirectToCubemapCoordinate(float(i) * dy - 0.5f,float(j) * dx - 0.5f,face,picture_remap.rgbImg,M_PI,srcX, srcY);warpMat1[ii].at<float>(j, i) = static_cast<float>(srcX);warpMat2[ii].at<float>(j, i) = static_cast<float>(srcY);warpMat[ii].at<Point2f>(j, i) = Point2f(srcX, srcY);}}wM1[ii].upload(warpMat1[ii]);wM2[ii].upload(warpMat2[ii]);}return 1;
}char cur_state = 0;
void render()  //渲染过程 贴在天空盒子
{ QueryPerformanceCounter(&nBeginTime);src[cur_state].upload(picture_remap.rgbImg, src_stream[cur_state]);QueryPerformanceCounter(&nEndTime);printf("upload time: %f\n", (double)(nEndTime.QuadPart - nBeginTime.QuadPart) / (double)nFreq.QuadPart);int ii;cuda::GpuMat dst_mat[6];cuda::Stream remap_stream[6];cur_state = cur_state ^ 0x01;QueryPerformanceCounter(&nBeginTime);src_stream[cur_state].waitForCompletion();QueryPerformanceCounter(&nEndTime);printf("wait time: %f\n", (double)(nEndTime.QuadPart - nBeginTime.QuadPart) / (double)nFreq.QuadPart);QueryPerformanceCounter(&nBeginTime);for (ii = 0; ii < 6; ii++){int faceId = ii;dst_mat[ii] = wBuf[ii].mapDevice();cv::cuda::remap(src[cur_state],dst_mat[ii],wM1[faceId],wM2[faceId],CV_INTER_CUBIC,BORDER_WRAP,cv::Scalar(),remap_stream[ii]);}QueryPerformanceCounter(&nEndTime);printf("process time: %f\n", (double)(nEndTime.QuadPart - nBeginTime.QuadPart) / (double)nFreq.QuadPart);QueryPerformanceCounter(&nBeginTime);for (ii = 0; ii < 6; ii++){remap_stream[ii].waitForCompletion();wBuf[ii].unmapDevice();wBuf[ii].bind(cv::ogl::Buffer::Target::PIXEL_UNPACK_BUFFER);glTexSubImage2D(cube[ii], 0, 0, 0, wid, wid, GL_BGR_EXT, GL_UNSIGNED_BYTE, 0);//write img/*dst_mat[ii].download(dst[ii]);char name[] = "L0.jpg";name[1] = '0' + ii;imwrite(name, dst[ii]);*/}QueryPerformanceCounter(&nEndTime);printf("render time: %f\n", (double)(nEndTime.QuadPart - nBeginTime.QuadPart) / (double)nFreq.QuadPart);
}//opengl渲染过程:一开始创建一个纹理绑定在某个模型                 gltexture_2D改成_cubemape
void SetupRC()  //初始化 cubemapa 定点对应
{// Cull backs of polygonsglCullFace(GL_BACK);glFrontFace(GL_CCW);glEnable(GL_DEPTH_TEST);// Set up texture maps        glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MAG_FILTER, GL_LINEAR);glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_MIN_FILTER, GL_LINEAR_MIPMAP_LINEAR);glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);glPixelStorei(GL_UNPACK_ALIGNMENT, 1);glGenTextures(1, &cubeTexture);       //创建一个纹理glBindTexture(GL_TEXTURE_CUBE_MAP, cubeTexture); //绑定一个纹理//pre upload one framesrc[1].upload(picture_remap.rgbImg, src_stream[1]);for (int ii = 0; ii < 6; ii++){int faceId = ii;glTexImage2D(cube[ii], 0, GL_RGB, wid, wid, 0, GL_BGR_EXT, GL_UNSIGNED_BYTE, 0);// (void *)cvtmap.face[faceId].data); //512*512 贴图}glGenerateMipmap(GL_TEXTURE_CUBE_MAP);viewFrame.MoveForward(-4.0f);gltMakeCube(cubeBatch, 20.0f);skyBoxShader = gltLoadShaderPairWithAttributes("SkyBox.vp", "SkyBox.fp", 2,GLT_ATTRIBUTE_VERTEX, "vVertex",GLT_ATTRIBUTE_NORMAL, "vNormal");locMVPSkyBox = glGetUniformLocation(skyBoxShader, "mvpMatrix");glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);}void ShutdownRC(void)
{glDeleteTextures(1, &cubeTexture);
}int ct = 0;
void RenderPic(void) //
{//这一段就是读yuv图片//fread(yuvImg.data, bufLen * sizeof(unsigned char), 1, pFileIn);//memcpy(yuvImg.data, pYuvBuf, bufLen * sizeof(unsigned char));
//	cv::cvtColor(yuvImg, picture_remap.rgbImg, CV_YUV2RGB_I420);render();ct++;if (ct == 10){start_time = GetTickCount();}else if (ct > 10){end_time = GetTickCount();float time = (end_time - start_time)*1.0 / 1000;printf("帧率 %f \n", (ct-10) / time);}glutPostRedisplay();
}// Called to draw scene
void RenderScene(void)
{//cvWaitKey(33);frame = cvQueryFrame(capture);if (frame) {picture_remap.rgbImg = cvarrToMat(frame);// Clear the windowglClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);M3DMatrix44f mCamera;M3DMatrix44f mCameraRotOnly;M3DMatrix44f mInverseCamera;viewFrame.GetCameraMatrix(mCamera, false);viewFrame.GetCameraMatrix(mCameraRotOnly, true);m3dInvertMatrix44(mInverseCamera, mCameraRotOnly);modelViewMatrix.PushMatrix();modelViewMatrix.MultMatrix(mCameraRotOnly);glUseProgram(skyBoxShader);glUniformMatrix4fv(locMVPSkyBox, 1, GL_FALSE, transformPipeline.GetModelViewProjectionMatrix());cubeBatch.Draw();modelViewMatrix.PopMatrix();RenderPic();//glutPostRedisplay();// Do the buffer SwapglutSwapBuffers();}}void SpecialKeys(int key, int x, int y)
{if (key == GLUT_KEY_PAGE_UP)viewFrame.MoveForward(0.1f);if (key == GLUT_KEY_PAGE_DOWN)viewFrame.MoveForward(-0.1f);if (key == GLUT_KEY_LEFT)viewFrame.RotateLocalY(0.1);if (key == GLUT_KEY_RIGHT)viewFrame.RotateLocalY(-0.1);if (key == GLUT_KEY_UP)viewFrame.RotateLocalX(0.1f);if (key == GLUT_KEY_DOWN)viewFrame.RotateLocalX(-0.1f);// Refresh the WindowglutPostRedisplay();
}void ChangeSize(int w, int h)
{// Prevent a divide by zeroif (h == 0)h = 1;// Set Viewport to window dimensionsglViewport(0, 0, w, h);viewFrustum.SetPerspective(55.0f, float(w) / float(h), 0.1f, 1000.0f); //放摄像机projectionMatrix.LoadMatrix(viewFrustum.GetProjectionMatrix());transformPipeline.SetMatrixStacks(modelViewMatrix, projectionMatrix);
}void FileSetup()
{pFileIn = fopen("1920.yuv", "rb+");printf("yuv file w: %d, h: %d \n", w, h);yuvImg.create(h * 3 / 2, w, CV_8U);}int main(int argc, char **argv)
{
//	FileSetup();picture_remap.rgbImg.setDefaultAllocator(cv::cuda::HostMem::getAllocator(cv::cuda::HostMem::AllocType::PAGE_LOCKED));picture_remap.rgbImg.create(4096, 2048, CV_8UC3);QueryPerformanceFrequency(&nFreq);glutInit(&argc, argv);glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);glutInitWindowSize(800, 600);glutCreateWindow("OpenGL Cube Maps");//这一段就是读yuv图片
//	fread(yuvImg.data, bufLen * sizeof(unsigned char), 1, pFileIn);
//	cv::cvtColor(yuvImg, picture_remap.rgbImg, CV_YUV2RGB_I420);capture = cvCreateFileCapture(VideoAddr);	int frames = (int)cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_COUNT);frame = cvQueryFrame(capture);picture_remap.rgbImg = cvarrToMat(frame);//picture_remap.rgbImg = imread("4k.jpg");w = picture_remap.rgbImg.cols;h = picture_remap.rgbImg.rows;MatInit();glutReshapeFunc(ChangeSize);glutDisplayFunc(RenderScene);glutSpecialFunc(SpecialKeys);GLenum err = glewInit();if (GLEW_OK != err) {fprintf(stderr, "GLEW Error: %s\n", glewGetErrorString(err));return 1;}SetupRC();glutMainLoop();ShutdownRC();delete[] pYuvBuf;yuvImg.release();cvReleaseCapture(&capture);fclose(pFileIn);return 0;
}

在a.1基础删减不必要的代码,改进功能为切割一张图片为立方体六面图片。
a.0代码虽然只是处理图片,但实验室学长早就考虑到后面处理视频等情况,所以提前应用了兵乓buffer来加载图片到GPU里进行双线程处理,我在a.2中去掉了,在c.0中补上了,即cv::cuda::Stream src_stream[2];cuda::GpuMat dst_mat[6]; cuda::Stream remap_stream[6];

(尴尬,这一行怎么去掉,,,,,,)

#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2\opencv.hpp> 
#include <opencv2\core\opengl.hpp>
#include <iostream>
#include <Windows.h>
#include <vector>
#include <stdio.h>
#include "conio.h"
#include <math.h>
#include <stdlib.h>
#include <GL/gl.h>
#include <opencv2/cudawarping.hpp>
using namespace std;
using namespace cv;#define M_PI 3.14159265358979323846
GLenum  cube[6] =
{GL_TEXTURE_CUBE_MAP_POSITIVE_X,GL_TEXTURE_CUBE_MAP_NEGATIVE_X,GL_TEXTURE_CUBE_MAP_POSITIVE_Y,GL_TEXTURE_CUBE_MAP_NEGATIVE_Y,GL_TEXTURE_CUBE_MAP_POSITIVE_Z,GL_TEXTURE_CUBE_MAP_NEGATIVE_Z
};enum CubemapFace
{CUBEMAP_FACE_BACK,CUBEMAP_FACE_LEFT,CUBEMAP_FACE_FRONT,CUBEMAP_FACE_RIGHT,CUBEMAP_FACE_TOP,CUBEMAP_FACE_BOTTOM
};
Mat warpMat1[6], warpMat2[6], dst[6];
Mat warpMat[6];
cv::cuda::GpuMat src[2], wM1[6], wM2[6];
cv::cuda::Stream src_stream[2];
ogl::Buffer wBuf[6];
int wid = 1024;
int w = 1920;
int h = 1080;
char cur_state = 0;
struct RGB_pic    //存储修改前文件 yuv->RGB
{cv::Mat rgbImg;int length;int height;} picture_remap;template <typename T>
inline T square(const T x)
{return x * x;
}template <typename T>
inline T clamp(const T& x, const T& a, const T& b)
{return x < a ? a : x > b ? b : x;
}
inline Vec3f cubemapIndexToVec3(const float x, const float y, const CubemapFace face)
{// rotate and flip the direction as a function of the faceVec3f dir(x, y, 0.5f);Vec3f dirOut = dir;switch (face) {case CUBEMAP_FACE_BACK:dirOut[0] = dir[0];dirOut[1] = dir[2];dirOut[2] = -dir[1];break;case CUBEMAP_FACE_LEFT:dirOut[0] = -dir[2];dirOut[1] = dir[0];dirOut[2] = -dir[1];break;case CUBEMAP_FACE_TOP: break; // no-opcase CUBEMAP_FACE_BOTTOM:dirOut[0] = dir[0];dirOut[1] = -dir[1];dirOut[2] = -dir[2];break;case CUBEMAP_FACE_FRONT:dirOut[0] = -dir[0];dirOut[1] = -dir[2];dirOut[2] = -dir[1];break;case CUBEMAP_FACE_RIGHT:dirOut[0] = dir[2];dirOut[1] = -dir[0];dirOut[2] = -dir[1];break;}return dirOut;
}
void mapEquirectToCubemapCoordinate(const float x,const float y,const CubemapFace& face,const Mat& srcEqrMat,const float fisheyeFovRadians,float& srcX,float& srcY)
{const Vec3f dir = cubemapIndexToVec3(x, y, face);const float r = sqrtf(square(dir[0]) + square(dir[1]));const float phi = acosf(dir[2] / norm(dir));float theta = r > 0.0f ? acosf(fabs(dir[0] / r)) : 0.0f;if (dir[0] > 0 && dir[1] > 0) { // Quadrant I// (nothing to do)}else if (dir[0] <= 0 && dir[1] > 0) { // Quadrant IItheta = M_PI - theta;}else if (dir[0] <= 0 && dir[1] <= 0) { // Quadrant IIItheta = M_PI + theta;}else { // Quadrant IVtheta = 2 * M_PI - theta;}const float phiPrime = clamp(phi, 0.0f, fisheyeFovRadians);const float thetaPrime = clamp(theta, 0.0f, float(2.0f * M_PI));srcX = float(srcEqrMat.cols) * thetaPrime / (2.0f * M_PI);srcY = float(srcEqrMat.rows) * phiPrime / fisheyeFovRadians;
}int MatInit()  //不要动
{CubemapFace face;//img sizewid = sqrtf((float(picture_remap.rgbImg.cols) * float(picture_remap.rgbImg.rows)) / 6) + 0.5;const float dy = 1.0f / float(wid);const float dx = 1.0f / float(wid);for (int ii = 0; ii < 6; ii++){warpMat1[ii] = Mat(Size(wid, wid), CV_32FC1);warpMat2[ii] = Mat(Size(wid, wid), CV_32FC1);warpMat[ii] = Mat(Size(wid, wid), CV_32FC2);//cv::ogl::Buffer::TargetwBuf[ii].create(Size(wid, wid), picture_remap.rgbImg.type(), ogl::Buffer::Target::PIXEL_UNPACK_BUFFER);switch (ii){case 0:face = CUBEMAP_FACE_RIGHT;break;case 1:face = CUBEMAP_FACE_LEFT;break;case 2:face = CUBEMAP_FACE_TOP;break;case 3:face = CUBEMAP_FACE_BOTTOM;break;case 4:face = CUBEMAP_FACE_BACK;break;case 5:face = CUBEMAP_FACE_FRONT;break;}for (int j = 0; j < wid; ++j){for (int i = 0; i < wid; ++i){float srcX;float srcY;mapEquirectToCubemapCoordinate(float(i) * dy - 0.5f,float(j) * dx - 0.5f,face,picture_remap.rgbImg,M_PI,srcX, srcY);warpMat1[ii].at<float>(j, i) = static_cast<float>(srcX);warpMat2[ii].at<float>(j, i) = static_cast<float>(srcY);warpMat[ii].at<Point2f>(j, i) = Point2f(srcX, srcY);}}wM1[ii].upload(warpMat1[ii]);wM2[ii].upload(warpMat2[ii]);}return 1;
}
int main(int argc, char **argv) {picture_remap.rgbImg.setDefaultAllocator(cv::cuda::HostMem::getAllocator(cv::cuda::HostMem::AllocType::PAGE_LOCKED));picture_remap.rgbImg.create(4096, 2048, CV_8UC3);QueryPerformanceFrequency(&nFreq);glutInit(&argc, argv);glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH);glutInitWindowSize(800, 600);glutCreateWindow("OpenGL Cube Maps");//src[1].upload(picture_remap.rgbImg, src_stream[1]); picture_remap.rgbImg = imread("4k.jpg");//输入一张图片src[1].upload(picture_remap.rgbImg, src_stream[1]);w = picture_remap.rgbImg.cols;h = picture_remap.rgbImg.rows;MatInit();//src[cur_state].upload(picture_remap.rgbImg, src_stream[cur_state]);int ii;cuda::GpuMat dst_mat[6];cuda::Stream remap_stream[6];//cur_state = cur_state ^ 0x01;//src_stream[cur_state].waitForCompletion();for ( ii = 0; ii < 6; ii++){int faceId = ii;dst_mat[ii] = wBuf[ii].mapDevice();cv::cuda::remap(//src[cur_state],src[1],dst_mat[ii],wM1[faceId],wM2[faceId],CV_INTER_CUBIC,BORDER_WRAP,cv::Scalar(),remap_stream[ii]);}for (ii = 0; ii < 6; ii++){//remap_stream[ii].waitForCompletion();wBuf[ii].unmapDevice();wBuf[ii].bind(cv::ogl::Buffer::Target::PIXEL_UNPACK_BUFFER);glTexSubImage2D(cube[ii], 0, 0, 0, wid, wid, GL_BGR_EXT, GL_UNSIGNED_BYTE, 0);//write imgdst_mat[ii].download(dst[ii]);//输出六张图片char name[] = "L0.jpg";name[1] = '0' + ii;imwrite(name, dst[ii]);}return 0;
}

下面是我改代码时,更换,删减,有用,没用的都有,很乱,没有解释:


//算当前帧率
if (++ct==30){ct = 0;end_time = GetTickCount();printf("帧率 %f \n", 30000.0/ (end_time - start_time));start_time = end_time;}//double rate = capture.get(CV_CAP_PROP_FPS);//获取原始视频帧率long totalFrameNumber = capture.get(CV_CAP_PROP_FRAME_COUNT);//获取总帧数int frameH = (int) cvGetCaptureProperty(pCapture, CV_CAP_PROP_FRAME_HEIGHT); int frameW = (int) cvGetCaptureProperty(pCapture, CV_CAP_PROP_FRAME_WIDTH); int fps = (int) cvGetCaptureProperty(pCapture, CV_CAP_PROP_FPS); int numFrames = (int) cvGetCaptureProperty(pCapture, CV_CAP_PROP_FRAME_COUNT); int delay = 1000/rate;//两帧间的间隔时间int c = waitKey(delay);//这个算帧率会出错,不知道为啥double fps;double t = 0;t = ((double)cv::getTickCount() - t) / cv::getTickFrequency();fps = 1.0 / t;//没用waitKey(300);RenderFrame()-SetupRC//读取视频宏定义啥的CvCapture * capture = NULL;char * VideoAddr = "zzz.mp4";IplImage * frame;Mat rgbImg;#define ImgRows 512#define ImgCols 512//读取视频+获取下一帧+帧转为Mat型capture = cvCreateFileCapture(VideoAddr);int frames = (int)cvGetCaptureProperty(capture, CV_CAP_PROP_FRAME_COUNT);frame = cvQueryFrame(capture);rgbImg = cvarrToMat(frame);//RenderScene-SetupRCframe = cvQueryFrame(capture);if (frame)rgbImg = cvarrToMat(frame);createCubeMapFace(rgbImg,img[0],0 , ImgRows, ImgCols);//网上找的切割映射函数,效果很差,没有实验室学者写得代码好createCubeMapFace(rgbImg,img[1],1 , ImgRows, ImgCols);createCubeMapFace(rgbImg,img[2],2 , ImgRows, ImgCols);createCubeMapFace(rgbImg,img[3],3 , ImgRows, ImgCols);createCubeMapFace(rgbImg,img[4],4 , ImgRows, ImgCols);createCubeMapFace(rgbImg,img[5],5 , ImgRows, ImgCols);//网上找的切割映射函数,效果很差,没有实验室学者写得代码好#include <opencv2/core/core.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui/highgui.hpp>const float M_PI = 3.1415926;float faceTransform[6][2] ={{0, 0},{M_PI / 2, 0},{M_PI, 0},{-M_PI / 2, 0},{0, -M_PI / 2},{0, M_PI / 2}};inline void createCubeMapFace(const Mat &in, Mat &face, int faceId = 0, const int width = -1, const int height = -1){float inWidth = in.cols;float inHeight = in.rows;// Allocate mapMat mapx(width, height, CV_32F);//(in.size(), CV_32F);Mat mapy(width, height, CV_32F);//(in.size(), CV_32F);// Calculate adjacent (ak) and opposite (an) of the// triangle that is spanned from the sphere center//to our cube face.const float an = sin(M_PI / 4);const float ak = cos(M_PI / 4);const float ftu = faceTransform[faceId][0];const float ftv = faceTransform[faceId][1];// For each point in the target image,// calculate the corresponding source coordinates.对目标图像的每个点计算相应的源坐标系for(int y = 0; y < height; y++) {for(int x = 0; x < width; x++) {// Map face pixel coordinates to [-1, 1] on planefloat nx = (float)y / (float)height - 0.5f;float ny = (float)x / (float)width - 0.5f;nx *= 2;ny *= 2;// Map [-1, 1] plane coords to [-an, an]// thats the coordinates in respect to a unit sphere// that contains our box.nx *= an;ny *= an;float u, v;// Project from plane to sphere surface.if(ftv == 0) {// Center facesu = atan2(nx, ak);v = atan2(ny * cos(u), ak);u += ftu;} else if(ftv > 0) {// Bottom facefloat d = sqrt(nx * nx + ny * ny);v = M_PI / 2 - atan2(d, ak);u = atan2(ny, nx);} else {// Top facefloat d = sqrt(nx * nx + ny * ny);v = -M_PI / 2 + atan2(d, ak);u = atan2(-ny, nx);}// Map from angular coordinates to [-1, 1], respectively.u = u / (M_PI);v = v / (M_PI / 2);// Warp around, if our coordinates are out of bounds.while (v < -1) {v += 2;u += 1;}while (v > 1) {v -= 2;u += 1;}while(u < -1) {u += 2;}while(u > 1) {u -= 2;}// Map from [-1, 1] to in texture spaceu = u / 2.0f + 0.5f;v = v / 2.0f + 0.5f;u = u * (inWidth - 1);v = v * (inHeight - 1);// Save the result for this pixel in mapmapx.at<float>(x, y) = u;mapy.at<float>(x, y) = v;}}// Recreate output image if it has wrong size or type./*if(face.cols != width || face.rows != height ||face.type() != in.type()) {face = Mat(width, height, in.type());}*/// Do actual resampling using OpenCV's remapremap(in, face, mapx, mapy, CV_INTER_LINEAR, BORDER_CONSTANT, Scalar(0, 0, 0));}

查看全文
如若内容造成侵权/违法违规/事实不符,请联系编程学习网邮箱:809451989@qq.com进行投诉反馈,一经查实,立即删除!

相关文章

  1. 视频用txt文件播放物联网

    argparse这是一个python的包&#xff0c;获取参数的&#xff0c;可了解 这是一个关于argparse的链接 命令行这个工具一定要掌握 pygame一个包 物联网模组&#xff1a; 远距离 NB-IOT&#xff08;目前很火&#xff0c;物联网厂商往这个方向发展&#xff09;, wifi GPRS 近距离…...

    2024/4/21 13:38:55
  2. H265视频流媒体播放器EasyWasmPlayer在项目中集成报错Failed to execute ‘drawImage‘ on ‘CanvasRenderingContext2D‘

    作为TSINGSEE青犀视频开发的视频流媒体播放器&#xff0c;EasyPlayer系列项目都是支持集成以及二次开发的&#xff0c;也可以通过下载试用获得真是的测试效果&#xff0c;其中新的H265播放器分支EasywasmPlayer播放器是网页播放的主流播放器。 H265播放器EasywasmPlayer已经在…...

    2024/4/21 13:38:54
  3. ionic3视频播放功能

    因为项目的需要&#xff0c;需要使用视频播放的功能&#xff0c;使用的是videogular2插件&#xff0c;但是报了一个无法识别video-player 这个标签&#xff0c;百度了很多&#xff0c;发现原来是版本 不对&#xff0c;ionic3是以来angular5&#xff0c;但是我当前装的videogula…...

    2024/4/27 14:56:45
  4. angular中直播页面的制作(二)

    在上一篇文章讲到&#xff0c;在angular中使用ckPlayer播放器&#xff0c;由于ckPlayer自身插件的问题不能满足我的需求&#xff0c;那么在这一篇&#xff0c;我将会讲解如何在angular中使用video.js播放rtmp视频。 Video.js是一款web视频播放器&#xff0c;支持html5和flash两…...

    2024/4/27 15:28:21
  5. 7mm的双眼皮会有肉条吗

    ...

    2024/4/27 16:08:38
  6. 双眼皮第八天明显不一样

    ...

    2024/4/20 5:43:38
  7. 纳米无痕双眼皮咨询

    ...

    2024/4/20 15:52:33
  8. 双眼皮一年了还是有白痕

    ...

    2024/4/21 13:38:53
  9. AngularJs 简单入门

    1.AngularJs 是什么以及应用程序组成的三部分 AngularJS是一个开发动态Web应用的框架。它让你可以使用HTML作为模板语言并且可以通过扩展的HTML语法来使应用组件更加清晰和简洁。它的创新之处在于&#xff0c;通过数据绑定和依赖注入减少了大量代码&#xff0c;而这些都在浏览器…...

    2024/4/21 13:38:58
  10. Redux or Mobx --前端应用状态管理方案的探索与思考

    Redux or Mobx --前端应用状态管理方案的探索与思考 本文首发于《程序员》杂志 2017年7月版&#xff1a;前端开发创新实践&#xff0c;作者本人&#xff0c;部分内容链接Redux or Mobx --前端应用状态管理方案的探索与思考 1. 前言 前端的发展日新月异&#xff0c;Angular/R…...

    2024/4/27 15:41:59
  11. Pod资源管理进阶-Pod对象的生命周期

    目录 Pod的生命周期 1、存活性探测行为属性 &#xff08;Liveness probe&#xff09; 2、Pod就绪性探测 3、Pod对象的相位 4、Pod的创建过程 5、Pod生命周期中的重要阶段 6、容器的重启策略 7、Pod的终止过程 8、设置Pod对象的安全上下文securityContext 9、资源需求…...

    2024/4/21 13:38:50
  12. 从零开始搭建口袋妖怪管理系统(6)-界面重做

    上一章我们基本完成了的项目工程化&#xff0c;项目已经可以自动实时重载并完成日志映射。通过配置也为以后项目打包上线打下了基础&#xff0c;那么现在终于到了设计界面的时候了。 一. 分析&布局设计 当前我们项目的界面是这样的&#xff1a; 简单来说&#xff0c;看不出…...

    2024/4/27 0:49:53
  13. 构建完整项目的docker镜像实例(前端,后端,数据库)

    一、目的 掌握构造镜像的方法根据项目运行所用到的环境定制镜像学会将自己构建的镜像提交到远程仓库 二、学习内容 1. 按照要求构建 angular-cli (前端)镜像,要求如下&#xff1a; 基于 alpine:latest 镜像&#xff1b;包含编译 angular 项目的所需要的环境&#xff1b;镜像…...

    2024/4/21 13:38:48
  14. 全切双眼皮术后恢复状况

    ...

    2024/4/26 15:42:46
  15. 百万用户量的系统架构方案实例

    1.准备工作2.安装软件&#xff08;1&#xff09;安装redis集群机器分配拷贝文件到zhy文件夹解压编译安装拷贝程序到相应目录配置master服务器配置slave服务器启动配置开机启动关闭防火墙测试集群 &#xff08;2&#xff09;安装zookeeper机器分配拷贝安装包修改 ZooKeeper 配置…...

    2024/4/21 13:38:45
  16. 双眼皮手术效果描述

    ...

    2024/4/21 13:38:45
  17. 平行与平扇双眼皮效果图

    ...

    2024/4/21 13:38:44
  18. react父子组件传参

    父子组件通信主要用到props&#xff0c;如下&#xff1a; 在父组件中&#xff1a; import React from react import ChildCom from ./childCom.js class ParentCom extends React.Component {render() {return (<div><h1>父组件</h1><ChildCom content{我…...

    2024/4/21 13:38:42
  19. 双眼皮拆线多久可以流脸

    ...

    2024/4/27 7:46:05
  20. swift 计算器_网络上的本周:Swift,比特币计算器等等!

    swift 计算器Hello and welcome to This Week on the Web. 您好&#xff0c;欢迎访问网上本周。 As the name suggests, this is a weekly round-up of trends and themes from the exciting and giddy world of web development. 顾名思义&#xff0c;这是每周一次令人兴奋的…...

    2024/4/21 13:38:42

最新文章

  1. 基于Kubernetes部署free5gc核心网

    说明&#xff1a; 本文仅适合个人对5gc核心网感兴趣测、研究使用。 操作系统版本&#xff1a; # uname -r 5.4.0-177-generic # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 20.04.5 LTS Release: 20.04 Codename: …...

    2024/4/27 16:39:36
  2. 梯度消失和梯度爆炸的一些处理方法

    在这里是记录一下梯度消失或梯度爆炸的一些处理技巧。全当学习总结了如有错误还请留言&#xff0c;在此感激不尽。 权重和梯度的更新公式如下&#xff1a; w w − η ⋅ ∇ w w w - \eta \cdot \nabla w ww−η⋅∇w 个人通俗的理解梯度消失就是网络模型在反向求导的时候出…...

    2024/3/20 10:50:27
  3. 开启 Keep-Alive 可能会导致http 请求偶发失败

    大家好&#xff0c;我是蓝胖子&#xff0c;说起提高http的传输效率&#xff0c;很多人会开启http的Keep-Alive选项&#xff0c;这会http请求能够复用tcp连接&#xff0c;节省了握手的开销。但开启Keep-Alive真的没有问题吗&#xff1f;我们来细细分析下。 最大空闲时间造成请求…...

    2024/4/23 4:15:19
  4. Docker Desktop+WSL2安装到自定义路径

    现在大多数软件实在太“流氓”了&#xff0c;在安装过程中&#xff0c;根本不让你选择安装路径&#xff0c;默认安装到$HOME下&#xff08;windows C盘&#xff09;&#xff0c;随着软件的使用增多&#xff0c;可能磁盘空间不够&#xff0c;这个时候就想着&#xff0c;看看某些…...

    2024/4/27 13:24:41
  5. 【外汇早评】美通胀数据走低,美元调整

    原标题:【外汇早评】美通胀数据走低,美元调整昨日美国方面公布了新一期的核心PCE物价指数数据,同比增长1.6%,低于前值和预期值的1.7%,距离美联储的通胀目标2%继续走低,通胀压力较低,且此前美国一季度GDP初值中的消费部分下滑明显,因此市场对美联储后续更可能降息的政策…...

    2024/4/26 18:09:39
  6. 【原油贵金属周评】原油多头拥挤,价格调整

    原标题:【原油贵金属周评】原油多头拥挤,价格调整本周国际劳动节,我们喜迎四天假期,但是整个金融市场确实流动性充沛,大事频发,各个商品波动剧烈。美国方面,在本周四凌晨公布5月份的利率决议和新闻发布会,维持联邦基金利率在2.25%-2.50%不变,符合市场预期。同时美联储…...

    2024/4/26 20:12:18
  7. 【外汇周评】靓丽非农不及疲软通胀影响

    原标题:【外汇周评】靓丽非农不及疲软通胀影响在刚结束的周五,美国方面公布了新一期的非农就业数据,大幅好于前值和预期,新增就业重新回到20万以上。具体数据: 美国4月非农就业人口变动 26.3万人,预期 19万人,前值 19.6万人。 美国4月失业率 3.6%,预期 3.8%,前值 3…...

    2024/4/26 23:05:52
  8. 【原油贵金属早评】库存继续增加,油价收跌

    原标题:【原油贵金属早评】库存继续增加,油价收跌周三清晨公布美国当周API原油库存数据,上周原油库存增加281万桶至4.692亿桶,增幅超过预期的74.4万桶。且有消息人士称,沙特阿美据悉将于6月向亚洲炼油厂额外出售更多原油,印度炼油商预计将每日获得至多20万桶的额外原油供…...

    2024/4/27 4:00:35
  9. 【外汇早评】日本央行会议纪要不改日元强势

    原标题:【外汇早评】日本央行会议纪要不改日元强势近两日日元大幅走强与近期市场风险情绪上升,避险资金回流日元有关,也与前一段时间的美日贸易谈判给日本缓冲期,日本方面对汇率问题也避免继续贬值有关。虽然今日早间日本央行公布的利率会议纪要仍然是支持宽松政策,但这符…...

    2024/4/25 18:39:22
  10. 【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响

    原标题:【原油贵金属早评】欧佩克稳定市场,填补伊朗问题的影响近日伊朗局势升温,导致市场担忧影响原油供给,油价试图反弹。此时OPEC表态稳定市场。据消息人士透露,沙特6月石油出口料将低于700万桶/日,沙特已经收到石油消费国提出的6月份扩大出口的“适度要求”,沙特将满…...

    2024/4/27 14:22:49
  11. 【外汇早评】美欲与伊朗重谈协议

    原标题:【外汇早评】美欲与伊朗重谈协议美国对伊朗的制裁遭到伊朗的抗议,昨日伊朗方面提出将部分退出伊核协议。而此行为又遭到欧洲方面对伊朗的谴责和警告,伊朗外长昨日回应称,欧洲国家履行它们的义务,伊核协议就能保证存续。据传闻伊朗的导弹已经对准了以色列和美国的航…...

    2024/4/26 21:56:58
  12. 【原油贵金属早评】波动率飙升,市场情绪动荡

    原标题:【原油贵金属早评】波动率飙升,市场情绪动荡因中美贸易谈判不安情绪影响,金融市场各资产品种出现明显的波动。随着美国与中方开启第十一轮谈判之际,美国按照既定计划向中国2000亿商品征收25%的关税,市场情绪有所平复,已经开始接受这一事实。虽然波动率-恐慌指数VI…...

    2024/4/27 9:01:45
  13. 【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试

    原标题:【原油贵金属周评】伊朗局势升温,黄金多头跃跃欲试美国和伊朗的局势继续升温,市场风险情绪上升,避险黄金有向上突破阻力的迹象。原油方面稍显平稳,近期美国和OPEC加大供给及市场需求回落的影响,伊朗局势并未推升油价走强。近期中美贸易谈判摩擦再度升级,美国对中…...

    2024/4/26 16:00:35
  14. 【原油贵金属早评】市场情绪继续恶化,黄金上破

    原标题:【原油贵金属早评】市场情绪继续恶化,黄金上破周初中国针对于美国加征关税的进行的反制措施引发市场情绪的大幅波动,人民币汇率出现大幅的贬值动能,金融市场受到非常明显的冲击。尤其是波动率起来之后,对于股市的表现尤其不安。隔夜美国股市出现明显的下行走势,这…...

    2024/4/25 18:39:16
  15. 【外汇早评】美伊僵持,风险情绪继续升温

    原标题:【外汇早评】美伊僵持,风险情绪继续升温昨日沙特两艘油轮再次发生爆炸事件,导致波斯湾局势进一步恶化,市场担忧美伊可能会出现摩擦生火,避险品种获得支撑,黄金和日元大幅走强。美指受中美贸易问题影响而在低位震荡。继5月12日,四艘商船在阿联酋领海附近的阿曼湾、…...

    2024/4/25 18:39:16
  16. 【原油贵金属早评】贸易冲突导致需求低迷,油价弱势

    原标题:【原油贵金属早评】贸易冲突导致需求低迷,油价弱势近日虽然伊朗局势升温,中东地区几起油船被袭击事件影响,但油价并未走高,而是出于调整结构中。由于市场预期局势失控的可能性较低,而中美贸易问题导致的全球经济衰退风险更大,需求会持续低迷,因此油价调整压力较…...

    2024/4/26 19:03:37
  17. 氧生福地 玩美北湖(上)——为时光守候两千年

    原标题:氧生福地 玩美北湖(上)——为时光守候两千年一次说走就走的旅行,只有一张高铁票的距离~ 所以,湖南郴州,我来了~ 从广州南站出发,一个半小时就到达郴州西站了。在动车上,同时改票的南风兄和我居然被分到了一个车厢,所以一路非常愉快地聊了过来。 挺好,最起…...

    2024/4/26 22:01:59
  18. 氧生福地 玩美北湖(中)——永春梯田里的美与鲜

    原标题:氧生福地 玩美北湖(中)——永春梯田里的美与鲜一觉醒来,因为大家太爱“美”照,在柳毅山庄去寻找龙女而错过了早餐时间。近十点,向导坏坏还是带着饥肠辘辘的我们去吃郴州最富有盛名的“鱼头粉”。说这是“十二分推荐”,到郴州必吃的美食之一。 哇塞!那个味美香甜…...

    2024/4/25 18:39:14
  19. 氧生福地 玩美北湖(下)——奔跑吧骚年!

    原标题:氧生福地 玩美北湖(下)——奔跑吧骚年!让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 让我们红尘做伴 活得潇潇洒洒 策马奔腾共享人世繁华 对酒当歌唱出心中喜悦 轰轰烈烈把握青春年华 啊……啊……啊 两…...

    2024/4/26 23:04:58
  20. 扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!

    原标题:扒开伪装医用面膜,翻六倍价格宰客,小姐姐注意了!扒开伪装医用面膜,翻六倍价格宰客!当行业里的某一品项火爆了,就会有很多商家蹭热度,装逼忽悠,最近火爆朋友圈的医用面膜,被沾上了污点,到底怎么回事呢? “比普通面膜安全、效果好!痘痘、痘印、敏感肌都能用…...

    2024/4/25 2:10:52
  21. 「发现」铁皮石斛仙草之神奇功效用于医用面膜

    原标题:「发现」铁皮石斛仙草之神奇功效用于医用面膜丽彦妆铁皮石斛医用面膜|石斛多糖无菌修护补水贴19大优势: 1、铁皮石斛:自唐宋以来,一直被列为皇室贡品,铁皮石斛生于海拔1600米的悬崖峭壁之上,繁殖力差,产量极低,所以古代仅供皇室、贵族享用 2、铁皮石斛自古民间…...

    2024/4/25 18:39:00
  22. 丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者

    原标题:丽彦妆\医用面膜\冷敷贴轻奢医学护肤引导者【公司简介】 广州华彬企业隶属香港华彬集团有限公司,专注美业21年,其旗下品牌: 「圣茵美」私密荷尔蒙抗衰,产后修复 「圣仪轩」私密荷尔蒙抗衰,产后修复 「花茵莳」私密荷尔蒙抗衰,产后修复 「丽彦妆」专注医学护…...

    2024/4/26 19:46:12
  23. 广州械字号面膜生产厂家OEM/ODM4项须知!

    原标题:广州械字号面膜生产厂家OEM/ODM4项须知!广州械字号面膜生产厂家OEM/ODM流程及注意事项解读: 械字号医用面膜,其实在我国并没有严格的定义,通常我们说的医美面膜指的应该是一种「医用敷料」,也就是说,医用面膜其实算作「医疗器械」的一种,又称「医用冷敷贴」。 …...

    2024/4/27 11:43:08
  24. 械字号医用眼膜缓解用眼过度到底有无作用?

    原标题:械字号医用眼膜缓解用眼过度到底有无作用?医用眼膜/械字号眼膜/医用冷敷眼贴 凝胶层为亲水高分子材料,含70%以上的水分。体表皮肤温度传导到本产品的凝胶层,热量被凝胶内水分子吸收,通过水分的蒸发带走大量的热量,可迅速地降低体表皮肤局部温度,减轻局部皮肤的灼…...

    2024/4/27 8:32:30
  25. 配置失败还原请勿关闭计算机,电脑开机屏幕上面显示,配置失败还原更改 请勿关闭计算机 开不了机 这个问题怎么办...

    解析如下&#xff1a;1、长按电脑电源键直至关机&#xff0c;然后再按一次电源健重启电脑&#xff0c;按F8健进入安全模式2、安全模式下进入Windows系统桌面后&#xff0c;按住“winR”打开运行窗口&#xff0c;输入“services.msc”打开服务设置3、在服务界面&#xff0c;选中…...

    2022/11/19 21:17:18
  26. 错误使用 reshape要执行 RESHAPE,请勿更改元素数目。

    %读入6幅图像&#xff08;每一幅图像的大小是564*564&#xff09; f1 imread(WashingtonDC_Band1_564.tif); subplot(3,2,1),imshow(f1); f2 imread(WashingtonDC_Band2_564.tif); subplot(3,2,2),imshow(f2); f3 imread(WashingtonDC_Band3_564.tif); subplot(3,2,3),imsho…...

    2022/11/19 21:17:16
  27. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机...

    win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”问题的解决方法在win7系统关机时如果有升级系统的或者其他需要会直接进入一个 等待界面&#xff0c;在等待界面中我们需要等待操作结束才能关机&#xff0c;虽然这比较麻烦&#xff0c;但是对系统进行配置和升级…...

    2022/11/19 21:17:15
  28. 台式电脑显示配置100%请勿关闭计算机,“准备配置windows 请勿关闭计算机”的解决方法...

    有不少用户在重装Win7系统或更新系统后会遇到“准备配置windows&#xff0c;请勿关闭计算机”的提示&#xff0c;要过很久才能进入系统&#xff0c;有的用户甚至几个小时也无法进入&#xff0c;下面就教大家这个问题的解决方法。第一种方法&#xff1a;我们首先在左下角的“开始…...

    2022/11/19 21:17:14
  29. win7 正在配置 请勿关闭计算机,怎么办Win7开机显示正在配置Windows Update请勿关机...

    置信有很多用户都跟小编一样遇到过这样的问题&#xff0c;电脑时发现开机屏幕显现“正在配置Windows Update&#xff0c;请勿关机”(如下图所示)&#xff0c;而且还需求等大约5分钟才干进入系统。这是怎样回事呢&#xff1f;一切都是正常操作的&#xff0c;为什么开时机呈现“正…...

    2022/11/19 21:17:13
  30. 准备配置windows 请勿关闭计算机 蓝屏,Win7开机总是出现提示“配置Windows请勿关机”...

    Win7系统开机启动时总是出现“配置Windows请勿关机”的提示&#xff0c;没过几秒后电脑自动重启&#xff0c;每次开机都这样无法进入系统&#xff0c;此时碰到这种现象的用户就可以使用以下5种方法解决问题。方法一&#xff1a;开机按下F8&#xff0c;在出现的Windows高级启动选…...

    2022/11/19 21:17:12
  31. 准备windows请勿关闭计算机要多久,windows10系统提示正在准备windows请勿关闭计算机怎么办...

    有不少windows10系统用户反映说碰到这样一个情况&#xff0c;就是电脑提示正在准备windows请勿关闭计算机&#xff0c;碰到这样的问题该怎么解决呢&#xff0c;现在小编就给大家分享一下windows10系统提示正在准备windows请勿关闭计算机的具体第一种方法&#xff1a;1、2、依次…...

    2022/11/19 21:17:11
  32. 配置 已完成 请勿关闭计算机,win7系统关机提示“配置Windows Update已完成30%请勿关闭计算机”的解决方法...

    今天和大家分享一下win7系统重装了Win7旗舰版系统后&#xff0c;每次关机的时候桌面上都会显示一个“配置Windows Update的界面&#xff0c;提示请勿关闭计算机”&#xff0c;每次停留好几分钟才能正常关机&#xff0c;导致什么情况引起的呢&#xff1f;出现配置Windows Update…...

    2022/11/19 21:17:10
  33. 电脑桌面一直是清理请关闭计算机,windows7一直卡在清理 请勿关闭计算机-win7清理请勿关机,win7配置更新35%不动...

    只能是等着&#xff0c;别无他法。说是卡着如果你看硬盘灯应该在读写。如果从 Win 10 无法正常回滚&#xff0c;只能是考虑备份数据后重装系统了。解决来方案一&#xff1a;管理员运行cmd&#xff1a;net stop WuAuServcd %windir%ren SoftwareDistribution SDoldnet start WuA…...

    2022/11/19 21:17:09
  34. 计算机配置更新不起,电脑提示“配置Windows Update请勿关闭计算机”怎么办?

    原标题&#xff1a;电脑提示“配置Windows Update请勿关闭计算机”怎么办&#xff1f;win7系统中在开机与关闭的时候总是显示“配置windows update请勿关闭计算机”相信有不少朋友都曾遇到过一次两次还能忍但经常遇到就叫人感到心烦了遇到这种问题怎么办呢&#xff1f;一般的方…...

    2022/11/19 21:17:08
  35. 计算机正在配置无法关机,关机提示 windows7 正在配置windows 请勿关闭计算机 ,然后等了一晚上也没有关掉。现在电脑无法正常关机...

    关机提示 windows7 正在配置windows 请勿关闭计算机 &#xff0c;然后等了一晚上也没有关掉。现在电脑无法正常关机以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;关机提示 windows7 正在配…...

    2022/11/19 21:17:05
  36. 钉钉提示请勿通过开发者调试模式_钉钉请勿通过开发者调试模式是真的吗好不好用...

    钉钉请勿通过开发者调试模式是真的吗好不好用 更新时间:2020-04-20 22:24:19 浏览次数:729次 区域: 南阳 > 卧龙 列举网提醒您:为保障您的权益,请不要提前支付任何费用! 虚拟位置外设器!!轨迹模拟&虚拟位置外设神器 专业用于:钉钉,外勤365,红圈通,企业微信和…...

    2022/11/19 21:17:05
  37. 配置失败还原请勿关闭计算机怎么办,win7系统出现“配置windows update失败 还原更改 请勿关闭计算机”,长时间没反应,无法进入系统的解决方案...

    前几天班里有位学生电脑(windows 7系统)出问题了&#xff0c;具体表现是开机时一直停留在“配置windows update失败 还原更改 请勿关闭计算机”这个界面&#xff0c;长时间没反应&#xff0c;无法进入系统。这个问题原来帮其他同学也解决过&#xff0c;网上搜了不少资料&#x…...

    2022/11/19 21:17:04
  38. 一个电脑无法关闭计算机你应该怎么办,电脑显示“清理请勿关闭计算机”怎么办?...

    本文为你提供了3个有效解决电脑显示“清理请勿关闭计算机”问题的方法&#xff0c;并在最后教给你1种保护系统安全的好方法&#xff0c;一起来看看&#xff01;电脑出现“清理请勿关闭计算机”在Windows 7(SP1)和Windows Server 2008 R2 SP1中&#xff0c;添加了1个新功能在“磁…...

    2022/11/19 21:17:03
  39. 请勿关闭计算机还原更改要多久,电脑显示:配置windows更新失败,正在还原更改,请勿关闭计算机怎么办...

    许多用户在长期不使用电脑的时候&#xff0c;开启电脑发现电脑显示&#xff1a;配置windows更新失败&#xff0c;正在还原更改&#xff0c;请勿关闭计算机。。.这要怎么办呢&#xff1f;下面小编就带着大家一起看看吧&#xff01;如果能够正常进入系统&#xff0c;建议您暂时移…...

    2022/11/19 21:17:02
  40. 还原更改请勿关闭计算机 要多久,配置windows update失败 还原更改 请勿关闭计算机,电脑开机后一直显示以...

    配置windows update失败 还原更改 请勿关闭计算机&#xff0c;电脑开机后一直显示以以下文字资料是由(历史新知网www.lishixinzhi.com)小编为大家搜集整理后发布的内容&#xff0c;让我们赶快一起来看一下吧&#xff01;配置windows update失败 还原更改 请勿关闭计算机&#x…...

    2022/11/19 21:17:01
  41. 电脑配置中请勿关闭计算机怎么办,准备配置windows请勿关闭计算机一直显示怎么办【图解】...

    不知道大家有没有遇到过这样的一个问题&#xff0c;就是我们的win7系统在关机的时候&#xff0c;总是喜欢显示“准备配置windows&#xff0c;请勿关机”这样的一个页面&#xff0c;没有什么大碍&#xff0c;但是如果一直等着的话就要两个小时甚至更久都关不了机&#xff0c;非常…...

    2022/11/19 21:17:00
  42. 正在准备配置请勿关闭计算机,正在准备配置windows请勿关闭计算机时间长了解决教程...

    当电脑出现正在准备配置windows请勿关闭计算机时&#xff0c;一般是您正对windows进行升级&#xff0c;但是这个要是长时间没有反应&#xff0c;我们不能再傻等下去了。可能是电脑出了别的问题了&#xff0c;来看看教程的说法。正在准备配置windows请勿关闭计算机时间长了方法一…...

    2022/11/19 21:16:59
  43. 配置失败还原请勿关闭计算机,配置Windows Update失败,还原更改请勿关闭计算机...

    我们使用电脑的过程中有时会遇到这种情况&#xff0c;当我们打开电脑之后&#xff0c;发现一直停留在一个界面&#xff1a;“配置Windows Update失败&#xff0c;还原更改请勿关闭计算机”&#xff0c;等了许久还是无法进入系统。如果我们遇到此类问题应该如何解决呢&#xff0…...

    2022/11/19 21:16:58
  44. 如何在iPhone上关闭“请勿打扰”

    Apple’s “Do Not Disturb While Driving” is a potentially lifesaving iPhone feature, but it doesn’t always turn on automatically at the appropriate time. For example, you might be a passenger in a moving car, but your iPhone may think you’re the one dri…...

    2022/11/19 21:16:57