Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
.Net Runtime Library for Delphi 6.0.4.0
Scimbo 1.64
AnyMap JS Maps 8.4.2
GetOrgChart 2.5.3
AnyChart JS Charts and Dashboards 8.4.2
OrgChart JS 3.8.0
dbForge Compare Bundle for MySQL 8.1
dbForge Search for SQL Server 2.3
Database Workbench Pro 5.5.0
Luxand FaceSDK 7.0
SSIS Data Flow Components 1.10
Entity Developer Professional 6.3
dbForge Index Manager for SQL Server 1.9
dbForge Data Generator For MySQL 2.2
Magento Australia Post eParcel Extension 1.0
Top Code
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Betting system 6.x-1.x-dev
Java-2-Pseudo 1.0
Library Management System 1.0
Russian Roulette
soccerbet 1.0
Cuckoo Search (CS) Algorithm 1.0
JEDI Database Desktop 27012002
JAC (Java Asn.1 Compiler) 3.0
CONTRAST CONTROLLER 1.0
ActivePerl 5.8.4.810/5.6.1.638
Analog Clock from Jay 1.0
shopping mall management system 1.0
Stepping stone algorithum for solving the transhipment problem
Equipment Rental Script 1.0
Top Rated
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
ATN Jobs Software 4.0
ATN Mall 2.0
WeBuilder 2015 13.3
PHP Digital Download Script 1.0.4
Matrix Convolution with Sub-Pixel Resolution 1.0
File ID: 84536






Matrix Convolution with Sub-Pixel Resolution 1.0
Download Matrix Convolution with Sub-Pixel Resolution 1.0http://www.mathworks.comReport Error Link
License: Shareware
File Size: 10.0 KB
Downloads: 35
Submit Rating:
Matrix Convolution with Sub-Pixel Resolution 1.0 Description
Description: Tristan Ursell
Sub-pixel Resolved 2D Convolution
March 2012

matout=matoverlay(mat1,mat2,x,y);

This function takes an input matrix mat1 and creates an image of the
matrix mat2 at the position (x,y) in mat1. If (x,y) are floats, then the
image is a sub-pixel bilinear representatoin of mat2 at position (x,y) in
mat1. The output matrix will have the same size at mat1, with no edge effects.

Essentially this is performing a sparse, fully valid convolution of mat2
and mat1 at the point (x,y) with the output size of mat1. The point (x,y)
uses the imaging convention for the coordinate axes.

The values of (x,y) can be floats, as long as they lie within the bounds
of mat1. Combining this function with a for-loop and weights creates a
fully valid 2D subpixel resolution convolution -- see Example -- in
contrast to conv2 which is limited to pixel resolution.

see also: conv2

Example:

N=50;
x=1+99*rand(1,N);
y=1+99*rand(1,N);

mat1=zeros(100,100);

mat2=mat2gray(fspecial('gaussian',[11,11],3));

I0=zeros(size(mat1));
ints=rand(1,N);
for i=1:N
I0=I0+ints(i)*matoverlay(mat1,mat2,x(i),y(i));
end

figure;
colormap(hot)
subplot(1,2,1)
imagesc(mat2)
axis equal
axis tight
title('mat2')

subplot(1,2,2)
hold on
imagesc(I0)
plot(x,y,'bo')
axis equal
axis tight
title('Sparse Convolution of mat1 and mat2')

License: Shareware

Related: Limited, pixel, n3d50, rand, conv, Contrast, combining, Bounds

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 35



More Similar Code

The sub-pixel locations are solved by forming a Taylor series representation
of the corner image values
Reference: Brown and Lowe "Invariant Features from Interest Point Groups"
BMVC 2002 pp 253-262



Function that convert geographic coordinates to North azimuthal equal-area map with 25 km
resolution pixel (EASE-Grid projection or NL). That projection is used mainly in remote sensing and cover the northern hemisphere.

If you...



SYLVESTER - Sylvester matrix of two polynomials
SYLVESTER(P,Q) returns the Sylvester Matrix associated with the two
polynomial representations P and Q. M is a N-by-N square matrix with
N being the total number of elements of P...



This function does the decomposition of a separable nD kernel into
its 1D components, such that a convolution with each of these
components yields the same result as a convolution with the full nD
kernel, at a drastic reduction in...



MYRANDPERM(A) returns matrix A with elements randomly permuted. This function uses RANDPERM.



As one would learn in a basic signal processing / controls / dynamical systems class, the multiplication by an LTI transfer function F(s) in the frequency domain is the same operation as convolution with f(t) in the time domain.

While...



This is a matrix calculator with basic matrix functions add, multiply, inverse. You can see the source in a textbox below the current calculations. Current work can be actually saved in the source and reused.



function P=ipeak(DataMatrix,PeakD,AmpT,SlopeT,SmoothW,FitW)
Keyboard-operated Interactive Peak Finder for data in data matrix "DataMatrix", with x values in row 1 and y values in row 2. Returns the peak table in P (Peak #, Position,...



Generates random 2D-paths between start and finish nodes according to densities distribution given by matrix C with leg's contrainsts defined by the adjacency matrix I.

P = path_generator(start , finish , I , [C] , [K] , [V] ,...



PEAKFIND general 1D peak finding algorithm

peakfind(x_data,y_data)
peakfind(x_data,y_data,upsam)
peakfind(x_data,y_data,upsam,gsize,gstd)
peakfind(x_data,y_data,upsam,htcut,'cuttype')
...

User Review for Matrix Convolution with Sub-Pixel Resolution
- required fields
     

Please enter text on the image