- 博客(8)
- 资源 (33)
- 收藏
- 关注
原创 what is __init__.py for?
Python defines two types of packages. regular packages and namespace packages. Regular packages are traditional packages as they existed in python3.2 and earlier. A regular package is typically implem...
2020-02-06 18:39:28
2817
原创 Merging an upstream repository into your fork
If you don't have push (write) access to an upstream repository, then you can pull commits form that repository into your own fork1. open a terminal2. change the current working directory to your ...
2020-02-05 13:22:31
155
原创 堆排序的java实现
/*最大堆*/public class HeapSort { int heapsize; int[] heap; /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub HeapSort hp = new HeapSort()...
2018-09-02 20:07:29
152
原创 opencv核心操作笔记--图像的基础操作
图像的基础操作目标:1. 获取图像的像素值并修改2. 获取图像的属性信息3. 图像通道的拆分以及合并1. 获取图像的像素值并修改import cv2import numpy as npimg = cv2.imread('./xxx.png')px = img[100,100]print(px)#BGR图像blue = img[100,100,0]prin...
2018-08-30 13:58:37
195
1
原创 OpenCV中的GUI特性--如何读入、显示以及保存图像
1. 如何读入图像import cv2path = './xxx.jpg'img = cv2.imread(path, 0)其中cv2.imread()的第二个参数告诉函数如何读取这个图像,默认参数为cv2.IMREAD_COLOWR: 读入一幅彩色图像。图像的透明度会被忽略,这是默认参数。2. 如何显示图像2.1 使用cv2.imgshow()cv2.imgshow(...
2018-08-30 13:38:52
458
原创 java中的栈内存和堆内存(笔记)
当一个方法执行时,每个方法都会建立自己的内存栈,在这个方法内定义的变量将会逐个放入这块栈内存里,随着方法的执行结束,这个方法的内存栈也将自然销毁.因此所有在方法中定义的局部变量都是放在栈内存的;在程序中创建一个对象时,这个对象将被保存到运行时数据区中,以便反复利用(因为对象的创建成本通常较大),这个运行时数据区就是堆内存.堆内存中的对象不会因为方法的结束而销毁,即使方法结束后,这个对象还可能被另一
2017-09-08 14:33:57
192
转载 关于Java Collections的几个常见问题
转自http://linbingdong.com/2017/01/07/Stack%20Overflow%E4%B8%8A%E5%85%B3%E4%BA%8EJava%20Collections%E7%9A%84%E5%87%A0%E4%B8%AA%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98/列举几个关于Java Collections的常见问题并给出答案。
2017-08-10 21:49:17
416
原创 leetcode TwoSum
解法一:双重循环, 复杂度O(n^2)public class Solution { public static void main(String[] args){ int c[] = {3,3,6}; Solution so = new Solution(); int[] result=so.twoSum(c,9); System.out.println(result[0]
2017-08-10 14:25:09
267
数字图像处理和opencv
2019-08-28
The Essential Guide to HTML5 and CSS3 Web Design
2017-08-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人