二维信号的卷积原理请参考另外一篇文章:http://blog.csdn.net/carson2005/article/details/43702241
这里直接给出参考代码:
void Conv2(int** filter, int** arr, int** res, int filterW, int filterH, int arrW, int arrH)
{
int temp;
...
分类:
其他好文 时间:
2015-02-10 15:24:34
阅读次数:
223
#include
#include
typedef struct LinkStack
{
int info;
struct LinkStack *next;
}StackNode;
typedef struct LinkTop
{
struct LinkStack *Top;
}LinkTop;
LinkTop* creat_Stack(void)
{
LinkTop *...
分类:
其他好文 时间:
2015-02-10 15:22:58
阅读次数:
169
#include
#include
#define MAX_DATA 10
typedef struct seqQueue
{
int data[MAX_DATA];
int front,rear;
}seqqueue;
void InitQueue(seqqueue *sq)
{
sq->front=0;
sq->rear=0;
}
int Empty(seqqueue sq...
分类:
其他好文 时间:
2015-02-10 15:23:09
阅读次数:
176
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
Find the minimum element.
The array may contain duplicates.
解...
分类:
其他好文 时间:
2015-02-10 15:22:51
阅读次数:
195
//linkqueue.h#include "stdio.h"
#include "stdlib.h"
#include
#define MAXSZIE 30
struct qNode
{ char name[MAXSZIE];
char author[MAXSZIE];
int Pages;
double Price;
char IsForeign;
struct qNode * next;...
分类:
其他好文 时间:
2015-02-10 15:22:55
阅读次数:
187
CodeForces 148D. Bag of mice(概率dp啊 )...
分类:
其他好文 时间:
2015-02-10 15:20:33
阅读次数:
175
Time Limit: 2 Seconds Memory Limit: 65536 KBOne day, Nobita found that his computer is extremely slow. After several hours’ work, he finally found that it was a virus that made his poor computer s...
分类:
其他好文 时间:
2015-02-10 15:21:51
阅读次数:
183
Mozilla's CVS repository was 2.7 GB in size; when imported to Subversion the size grew to 8.2 GB, and when put under Git the size got shrunk to 450 MB. For a source code of
size 350 MB it's fairly ni...
分类:
其他好文 时间:
2015-02-10 15:19:57
阅读次数:
157
首先需要声明,本文纯属一个毫无远见和真才实学的小小散户的愚昧见解,仅供参考。...
分类:
其他好文 时间:
2015-02-10 15:19:30
阅读次数:
200
package org.mpc.final_activiti;
import java.util.List;
import org.activiti.engine.IdentityService;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.ProcessEngineConfiguration;
im...
分类:
其他好文 时间:
2015-02-10 15:19:25
阅读次数:
164
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
题意:将两个有序的链表合并成一个链表
思路:每次比较链表头就行了,把比较小的插入新的链表中
/**
...
分类:
其他好文 时间:
2015-02-10 15:19:37
阅读次数:
132
微软近期Open的职位:Job Title: Senior Software EngineerWork Location: Suzhou/Beijing, ChinaWe are working on understanding and harnessing the data on the inte...
分类:
其他好文 时间:
2015-02-10 15:18:01
阅读次数:
167
一次连接数据库怎么也连接不上,查了多方面资料,终于找到答案,总结 首先应该保证数据库的服务启动 在myeclipse的数据库视图中点 右键->new 弹出database driver的窗口, Driver template选择oracle(thin driver), Driver name 输入o...
分类:
其他好文 时间:
2015-02-10 15:18:12
阅读次数:
143
ioctl的实现一、ioctl的简介:虽然在文件操作结构体"struct file_operations"中有很多对应的设备操作函数,但是有些命令是实在找不到对应的操作函数。如CD-ROM的驱动,想要一个弹出光驱的操作,这种操作并不是所有的字符设备都需要的,所以文件操作结构体也不会有对应的函数操作。...
分类:
其他好文 时间:
2015-02-10 15:17:22
阅读次数:
330
from:http://www.cnblogs.com/duanshuiliu/archive/2012/07/13/2589862.html使用ReportView控件可以显示远端Report service的报表,也可以处理生成本地报表,用法也比较简单,下面列举一下简单的步骤。首先使用Repo....
分类:
其他好文 时间:
2015-02-10 15:18:36
阅读次数:
190
Design and implement a TwoSum class. It should support the following operations:addandfind.add- Add the number to an internal data structure.find- Fin...
分类:
其他好文 时间:
2015-02-10 15:17:36
阅读次数:
235
传送门:Party题意:有n对夫妻被邀请参加一个聚会,因为场地的问题,每对夫妻中只有1人可以列席。在2n 个人中,某些人之间有着很大的矛盾(当然夫妻之间是没有矛盾的),有矛盾的2个人是不会同时出现在聚会上的。有没有可能会有n 个人同时列席?分析:two-sat裸题,对于有仇恨的两对夫妻u,v,连边u...
分类:
其他好文 时间:
2015-02-10 15:15:40
阅读次数:
188