ICode9

精准搜索请尝试: 精确搜索
  • numpy fft 备忘.2022-01-28 02:33:09

    主要参考以下注释网站 1 #encoding:utf-8 2 #https://blog.csdn.net/weixin_39949473/article/details/111337230 3 #https://blog.csdn.net/weixin_35756373/article/details/112713361 4 from numpy.fft import fft 5 6 import pylab 7 import matplotlib.pyp

  • SUMO经验(三) - 建立一个循环(使用flow)2022-01-16 14:33:36

    本项目记录使用SUMO进行实验的过程,SUMO版本:1.11.0,Python 3.7,使用Pycharm ide。主要参考官方文档:https://sumo.dlr.de/docs/Tutorials/Driving_in_Circles.html 本文写于2022-01-16   1 新建一个网络 使用netedit新建一个网络如图      记得看一下对面的两个edge的id,我这里分

  • 数字图像处理(DIP)作业9 part-2设计一种快速圆检测算法2022-01-14 22:03:39

    数字图像处理(DIP)作业9 part-2设计一种快速圆检测算法 文章目录 数字图像处理(DIP)作业9 part-2设计一种快速圆检测算法要求代码结果 要求 代码 运行环境:Ubuntu16.04 LTS + OpenCV 3.0.4 + ROS-kinetic-full 代码语言:c++ 过程:转灰度图->模糊处理->自适应全局阈值二

  • 【HTML+CSS+JS花环特效——附源代码】2021-10-30 20:31:37

    目录 效果代码 效果 代码 index.html <!DOCTYPE html> <html lang="en" > <head> <meta charset="UTF-8"> <title>Spinner Thingy</title> <link rel="stylesheet" href="css/style.css"> &

  • 【opencv-python】函数形参标签缺省引发报错的问题2021-10-20 22:33:34

    在霍夫圆变换程序中,我们调用霍夫圆变换函数,代码如下图所示: circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,1,minDist=50,param1=10,param2=50,minRadius=0,maxRadius=0) 结合这篇文章所述,运行效果正常,效果如下: 但是如果将函数中的flag全部去掉,值保留参数,代码如下图所

  • OpenCV霍夫圈变换2021-09-09 22:30:06

    主要使用cv.HoughCircles()函数来实现。 cv2.HoughCircles(image,method,dp,minDist[, circles[,param1, param2[,minRadius[,maxRadius]]]]]) 参数如下: image:输入矩阵method:cv2.HOUGH_GRADIENT,也就是霍夫圆检测,梯度法dp:计数器的分辨率图像像素分辨率与参数空间分辨率的比值

  • UVa 247 Calling Circles (传递闭包)2021-07-08 23:04:43

    题目链接:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=183 求出传递闭包,知道两个人之间能否直接或间接互相联系,如果能互相联系则在一个电话圈里,建新图输出每个连通分量即可 #include<bits/stdc++.h> using namespace std; type

  • [cf963E]Circles of Waiting2021-04-30 09:04:17

    将与原点距离大于$R$的点缩为一个点$t$,即终点 做法1 定义$f_{i}$表示从$i$到$t$的期望步数,即$f_{i}=\begin{cases}\sum_{(i,j)\in E}w_{(i,j)}f_{j}+1&(j\ne t)\\0&(j=t)\end{cases}$ 直接对其高斯消元,时间复杂度为$o(n^{3}m^{3})$ 做法2 事实上,如果将其按照顺序从上到下、从左到

  • 547. Friend Circles2020-08-08 17:31:49

    问题: 给定一个二维数组,每个元素M[i][j] 代表i和j是否为朋友:是朋友则为1,否则为0 求形成了多少个朋友圈。(朋友的朋友,认为在一个朋友圈) Example 1: Input: [[1,1,0], [1,1,0], [0,0,1]] Output: 2 Explanation:The 0th and 1st students are direct friends, so they are in a fr

  • 【python opencv】霍夫变换2020-06-21 16:54:35

    封装在OpenCV函数**cv.HoughLines**()中。它只是返回一个:math:(rho,theta)值的数组。ρ以像素为单位,θ以弧度为单位。第一个参数,输入图像应该是二进制图像,因此在应用霍夫变换之前,请应用阈值或使用Canny边缘检测。第二和第三参数分别是ρ和θ精度。第四个参数是阈值,这意味着应该将其

  • UVA10573 Geometry Paradox【计算几何】2020-03-04 09:41:41

    In the picture below you can see two small circles touching each other. The larger circle touches both of them. The length of the common tangent inscribed inside the larger circle is t and the radiuses of the two smaller circles are r1 and r2. The cente

  • CF963E Circles of Waiting2019-12-24 18:54:29

    Circles of Waiting 求一个整点四连通随机游⾛,离原点距离超过R期望步数。R≤50。 题解 本质上就是网格图的随机游走。 \[ E_x=\sum_y P_{x,y}E_y+1 \] 相关联的变量较少,所以使用Band Matrix即可。时间复杂度 \(O(R^4)\)。 https://blog.csdn.net/lycheng1215/article/details/8018

  • 前端每日实战:103# 视频演示如何用纯 CSS 创作一只监视眼2019-11-16 09:56:24

    效果预览 按下右侧的“点击预览”按钮可以在当前页面预览,点击链接可以全屏预览。 https://codepen.io/comehope/pen/GBzLdy 可交互视频 此视频是可以交互的,你可以随时暂停视频,编辑视频中的代码。 请用 chrome, safari, edge 打开观看。 https://scrimba.com/p/pEgDAM/cGENVuR 源

  • 创建对象数组(求圆的数组的总面积)2019-10-27 18:41:30

    public class Circle { private double radius = 1; public Circle(double newRadius){ radius=(newRadius>=1)?newRadius:0; } public double getRadius() { return radius; } public double setRadius(double newRadius) {

  • CF1060D Social Circles2019-10-23 17:02:13

    题目描述 现在有N个人,每一个人都不想周围的人坐得离他很近,所以在他的左边至少要放L[i]​张椅子,右边至少要放R[i]​张椅子. 现在他们要坐成若干个圈,请问最少要放多少张椅子. 注意:可以一个人坐在一个圈内.每一个人还需要坐一张椅子.   输入输出样例 输入 31 11 11 1 输出 6

  • UVA 11731 Ex-circles2019-08-30 18:55:01

    https://cn.vjudge.net/problem/UVA-11731 题目 有这么一个图形,圆和线相切,输入AB,AC,BC,求大三角形面积和阴影部分面积 题解 先证明BE垂直于DF,   把圆$D$缩小到和圆$F$一样,修改$AC$切于新圆,然后会发现对称性,然后就可以说明$BE$垂直于$DF$ 其他两个一样 只是证明不太显然= =然后就

  • 无人机实验(提取目标区域)2019-08-28 21:35:22

           无人机飞行过程中,飞的越高,视野范围也越远,而所需要的区域只是一部分,额外的区域都会成为干扰,那么就需要提取目标区域。        这是我们的高空俯视图,从图中看出,我们的目标区域明显的特点是:很大面积的白色的底。那方法就显而易见了,先删选出白色区域,再提取轮廓点,

  • LeetCode in Python 547. Friend Circles2019-07-17 23:53:17

    There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct friend of B, and B is a direct friend of C, then A is an indirect friend of C. And we defined a frien

  • (BFS 持续更新) leetcode 547. Friend Circles2019-05-17 16:44:53

    There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a directfriend of B, and B is a direct friend of C, then A is an indirect friend of C. And we defined a friend

  • hdoj - 1016 Prime Ring Problem2019-05-04 20:48:24

    A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.Note: the number of first circle should always be 1. Input n (0 < n < 2

  • codeforces157B2019-03-31 20:50:38

    Trace  CodeForces - 157B  One day, as Sherlock Holmes was tracking down one very important criminal, he found a wonderful painting on the wall. This wall could be represented as a plane. The painting had several concentric circles that divided the wall in

  • [Swift]LeetCode547. 朋友圈 | Friend Circles2019-02-21 18:52:51

    There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a directfriend of B, and B is a direct friend of C, then A is an indirect friend of C. And we defined a friend

  • NN and the Optical Illusion-光学幻觉 CodeForce1100C 几何2019-02-17 22:38:32

    题目链接:NN and the Optical Illusion 题目原文 NN is an experienced internet user and that means he spends a lot of time on the social media. Once he found the following image on the Net, which asked him to compare the sizes of inner circles: It turned out tha

  • 547. Friend Circles2019-01-30 19:48:03

    There are N students in a class. Some of them are friends, while some are not. Their friendship is transitive in nature. For example, if A is a direct friend of B, and B is a direct friend of C, then A is an indirect friend of C. And we defined a frien

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有