Rank: 1719 based on 66 downloads (last 30 days) and 2 files submitted
Personal Profile:
Professional Interests:
Computer Vision

 

Watch this Author's files

 

Files Posted by Brian View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
08 Oct 2010 Screenshot Image Interpolation (ba_interp2) Fast nearest, bi-linear and bi-cubic interpolation for image data Author: Brian interp2, interpolation, nearest neighbour, nearest neighbor, doesnt work, bilinear 31 11
  • 3.2
3.2 | 5 ratings
09 Oct 2008 Screenshot 3D Volume Interpolation with ba_interp3: Fast interp3 replacement Faster Replacement for interp3 Author: Brian filtering, interp3, interpolation, nearest neighbour, nearest neighbor 35 9
  • 4.33333
4.3 | 3 ratings
Comments and Ratings by Brian View all
Updated File Comments Rating
10 Feb 2011 Image Interpolation (ba_interp2) Fast nearest, bi-linear and bi-cubic interpolation for image data Author: Brian

Hello Michael,

it has a slightly different feature set.
The differences are:
- No support for X, Y, you have to do that yourself to the XI and YI variables.
That behaviour is what I need most often, and it saves a few cycles.
- Support for Z with dimensions HxWxD1xD2x..., returning Z(XI,YI,:,:,:,...) in slightly abused notation. I.e. it treats the dimensions following the first two dimensions as vectors and interpolates these. This is useful for color image interpolation, where you have arrays of size [H x W x 3].

I hope that helps,

Brian

20 Jan 2011 Image Interpolation (ba_interp2) Fast nearest, bi-linear and bi-cubic interpolation for image data Author: Brian

Hello Michael,

have you tried to compile other mex files. Compilation works for me on Ubuntu and Fedora, but it seems that you are using Windows. I do not actively support windows, as I do not have a windows machine with matlab available.

Brian

06 Oct 2010 Image Interpolation (ba_interp2) Fast nearest, bi-linear and bi-cubic interpolation for image data Author: Brian

Hello Courtney,

the file is actually working well for me with gnu c++ compiler and intel compiler. If you could state the errors you receive under windows, I might be willing to fix it.

20 Mar 2010 High accuracy optical flow High accuracy optical flow using a theory for warping Author: Visesh Chari

Thank you for this implementation. It is valuable in an educational way. But given that the bugs mentioned above are still in this package this gets only 3 stars from me. Also, you might be interested in this implementation which is a lot faster and produces very similar results:
http://people.csail.mit.edu/celiu/OpticalFlow/

Comments and Ratings on Brian's Files View all
Updated File Comment by Comments Rating
26 Nov 2013 3D Volume Interpolation with ba_interp3: Fast interp3 replacement Faster Replacement for interp3 Author: Brian sarun

To compile on windows, change include<string.h> to include<string> and add round function. Works great!!

27 Jul 2012 3D Volume Interpolation with ba_interp3: Fast interp3 replacement Faster Replacement for interp3 Author: Brian Hampshire, Thomas

Errors when compile mex file in Windows. Please change the following function to:

static
InterpolationMethod parseInterpolationMethod(const mxArray *method_string) {
if (method_string == NULL)
return Cubic;

char method[10] = "cubic ";

mxGetString(method_string, method, 9);

if (std::string(method).substr(0, 7).compare("nearest") == 0)
return Nearest;
else if (std::string(method).substr(0, 7).compare("linear") == 0)
return Linear;
else if (std::string(method).substr(0, 5).compare("cubic") == 0)
return Cubic;
else
mexErrMsgTxt("Specify one of nearest, linear, cubic as the interpolation method argument.");

return(Cubic);
}

Also add the function:

static inline double round(double val)
{
return floor(val + 0.5);
}

26 Jul 2012 Image Interpolation (ba_interp2) Fast nearest, bi-linear and bi-cubic interpolation for image data Author: Brian Hampshire, Thomas

Hi,
Great piece of code. However will not compile on windows machines due to lack of a round() function in the c standard. Including the following piece of code in the cpp file will allow it to compile:

static inline double round(double val){
return floor(val + 0.5);
}

08 Mar 2012 3D Volume Interpolation with ba_interp3: Fast interp3 replacement Faster Replacement for interp3 Author: Brian Lesjak, Ziga

Works great!

@vic Audi:
you can use .compare(str) to fix the == errors. example:
std::string(method).substr(0, 7).compare("nearest") != 0

15 Feb 2012 3D Volume Interpolation with ba_interp3: Fast interp3 replacement Faster Replacement for interp3 Author: Brian Christopher

Fx,Fy,Fz, & F need to be evenly and linearly spaced. Do X,Y, & Z also need to be evenly and linearly spaced for the routine to return the proper answer?

Contact us