计算机视觉公式笔记

拉普拉斯卷积模型由来:

/****************************************************************************************************************************/

C语言实现中值平滑滤波即,对于3*3的处理框进行数值排序

// zhongzhilvbo.cpp : 定义控制台应用程序的入口点。
//

#include <stdio.h>
#include <math.h>
#include <memory.h>
#include <conio.h>
#include <stdlib.h>
#include <windows.h>
#include "stdafx.h"
//原图象的宽度和高度
#define width 352
#define higth 288

int lvbo(unsigned char D[9])
{
    unsigned int temp;
    int i,j;

    for(i=0;i<9;i++)
    {
        for(j=0;j<9-i;j++)
        {
            if(D[i]>D[j+1])
            {
                temp=D[i];
                D[i]=D[j+1];
                D[j+1]=temp;
            }
        }    
    }
        
    return D[4];
}

void main()
{
    FILE *fp,*newfp;
    int i,j;

    if(!(fp=fopen("fmh1.bmp","rb")))
    {
        printf("Open file %s error!\n","k.bmp");
        return ;
    }

    if(!(newfp=fopen("fmout.bmp","wb")))
    {
        printf("Open file %s error!\n","result.bmp");
        return ;
    }

    unsigned char buffer[54+1024];//定义原图像头缓冲区
    fread(buffer,1,54+1024,fp);//读取文件头54个字节

    unsigned long length=width*higth;//图像的总象素个数
    unsigned char readData[higth][width];               //用于存储原图数据的数组
    unsigned char writeData[higth][width];               //用于存储原图数据的数组

    fread(&readData[0][0], sizeof(unsigned char),length, fp);//从原图读入数据
    
    for(i=0;i<higth;i++)
    {
        for(j=0;j<width;j++)
        {
            writeData[i][j]=readData[i][j];
        }
    }
         
    unsigned char D[9];        //定义选取框
    for(i=1;i<higth-1;i++)
    {
        for(j=1;j<width-1;j++)
        {
            D[0]=readData[i-1][j+1];
            D[1]=readData[i][j+1];
            D[2]=readData[i+1][j+1];
            D[3]=readData[i-1][j];
            D[4]=readData[i][j];
            D[5]=readData[i+1][j];
            D[6]=readData[i-1][j-1];
            D[7]=readData[i][j-1];
            D[8]=readData[i+1][j-1];
            writeData[i][j]=lvbo(D);
        }
    }

    fwrite(buffer,sizeof(unsigned char),54+1024,newfp);
    fwrite(writeData,sizeof(unsigned char),length,newfp);
    fclose(newfp);
    fclose(fp);

    return ;
}

/***********************************************************************************************************************************************/

BN算法: https://www.cnblogs.com/ranjiewen/articles/7748232.html

/**************************************************************************************************************************************/

深度学习中 那些特殊的反向传播,最大池化的反向传播

https://blog.csdn.net/qq_21190081/article/details/72871704

/*****************************************************************************************************************************************/

tensorflow中文官方文档

https://www.w3cschool.cn/tensorflow_python/tensorflow_python-r6kb2r34.html

/**********************************************************************************************************************************************/

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值