![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程道路上的弯路
我这个糟老头
励志糟老头
展开
-
c++识别试纸
#include <iostream>#include <fstream>#include<iomanip>#define MAXSIZE 8000#define column 43//像素列#define row 56//像素行#define Threshold 180using namespace std;int test(int* ptr);void Two_Dimention_arr_traval(int(*gary_ptr1)[col原创 2022-04-25 15:12:20 · 1020 阅读 · 0 评论 -
window开窗,鼠标点击查看某点的像素值(可以用来查看图片某点的像素值)
在这里插import numpy as npfrom PIL import Imageimport matplotlib.pyplot as pltimage = Image.open("C:/Users/hp-pc/Desktop/realize_zhao/positive.png") plt.imshow(image)plt.show() image_arr = np.array(image) print (image_arr)入代码片实现功能如下图,...原创 2022-04-10 23:10:16 · 790 阅读 · 0 评论 -
问题来源:我想把一张图片(PNG格式)输出为像素矩阵(RGB三通道)
图片输出为矩阵原创 2022-04-10 23:05:31 · 1239 阅读 · 0 评论 -
【无标题】引发了异常: 读取访问权限冲突,p 是 0xDDDDDDDD错误原因
关于指针1、指针异常我遇到的是指针异常,但是不是初始化异常,是在操作指针的过程当中发生异常。下面贴出代码块。这是单链表删除某结点的代码块。status delete_node(Linklist head, ElemType e)//单链表结点的删除{ if (head == NULL || head->next == NULL) { return false; } Linklist p = head->next; Linklist q= head; while (p !=原创 2022-03-16 16:03:49 · 3032 阅读 · 2 评论