lut = makelut('sum(x(:)) == 4',2); BW1 = imread('text.tif'); BW2 = applylut(BW1,lut); imshow(BW1) figure, imshow(BW2)
SRAM+LUT 源代码
汇集 SRAM+LUT 相关的电路原理图、PCB工程文件、单片机/FPGA源代码、数据手册与应用设计方案。
/* * * Copyright (C) 1998-2005, OFFIS * * This software and supporting documentation were developed by * * Kuratorium O…
/* * * Copyright (C) 1998-2005, OFFIS * * This software and supporting documentation were developed by * * Kuratorium O…
/* * * Copyright (C) 1998-2005, OFFIS * * This software and supporting documentation were developed by * * Kuratorium O…
/* * * Copyright (C) 1996-2005, OFFIS * * This software and supporting documentation were developed by * * Kuratorium O…
/* * * Copyright (C) 1996-2005, OFFIS * * This software and supporting documentation were developed by * * Kuratorium O…
module SEG7_LUT_8 ( oSEG0,oSEG1,oSEG2,oSEG3,oSEG4,oSEG5,oSEG6,oSEG7, iDIG,iWR,iCLK,iRST_N ); input [31:0] iDIG; input iW…
use strict; # keeps us honest use generator_library; # includes all the code we'll need??? generato…
//>> module SEG7_LUT_8 ( output [6:0]oSEG0, output [6:0]oSEG1, output [6:0]oSEG2, output [6:0]oSEG3, output [6:0]oSEG4…
%首先利用嵌入函数创建查找表 f=inline('sum(x(:)) == 4'); lut = makelut(f,2); %然后调用applylut函数利用查找表lut对图像进行操作 I1 = imread('text.tif'); I2 = a…