5,665 total contributions since 2009

Professional Interests: medical image processing, optimization algorithms

PLEASE NOTE: I do not read email sent through my author page. Please post questions about FEX submissions in their respective Comments section.

Answered

Every point on 2D surface is being transformed by unknown function. How to interpolate coordinates of any point on 2D surface knowing few of them.

If you have a model of the transformation the best approach would be to do a surface fit.

Every point on 2D surface is being transformed by unknown function. How to interpolate coordinates of any point on 2D surface knowing few of them.

If you have a model of the transformation the best approach would be to do a surface fit.

약 19시간 ago | 0

Answered

What does this "fsolve" message tell me?

Does a function evaulation error of (5.95853e-15 ) is not enough for the solution to be correct? Only you can know the answer ...

What does this "fsolve" message tell me?

Does a function evaulation error of (5.95853e-15 ) is not enough for the solution to be correct? Only you can know the answer ...

1일 ago | 2

| accepted

Answered

Vector Comparison According to Entities

[~,~,n]=unique(sort(A,1).','rows'); n=n(:).';

Vector Comparison According to Entities

[~,~,n]=unique(sort(A,1).','rows'); n=n(:).';

1일 ago | 1

| accepted

Answered

different matrix size after 3D interpolation

You could just use imresize3, new_SPECT = imresize3(SPECT, [512,512,263])

different matrix size after 3D interpolation

You could just use imresize3, new_SPECT = imresize3(SPECT, [512,512,263])

1일 ago | 0

Answered

Single-File Object-Oriented Script?

You could just create a static class method that runs what you would normally run in the workspace of the script, classdef some...

Single-File Object-Oriented Script?

You could just create a static class method that runs what you would normally run in the workspace of the script, classdef some...

1일 ago | 0

| accepted

Answered

Is there the more elegant way to do this?

You don't need the switch block. You can just do, items = get(hObject,'String'); index_selected = get(hObject,'Value'); cm ...

Is there the more elegant way to do this?

You don't need the switch block. You can just do, items = get(hObject,'String'); index_selected = get(hObject,'Value'); cm ...

1일 ago | 0

| accepted

Answered

How to find the transformation matrix for a plat knowing the old and new coordinates of 3 points on it ?

You could use this FEX file https://www.mathworks.com/matlabcentral/fileexchange/26186-absolute-orientation-horn-s-method

How to find the transformation matrix for a plat knowing the old and new coordinates of 3 points on it ?

You could use this FEX file https://www.mathworks.com/matlabcentral/fileexchange/26186-absolute-orientation-horn-s-method

1일 ago | 1

Answered

Can you create an array of Constraints in an Optimisation MILP problem?

The error message you are getting occurs when you do things like this, x=optimvar('Xname',252,1); y=optimvar('Xname',252,1); ...

Can you create an array of Constraints in an Optimisation MILP problem?

The error message you are getting occurs when you do things like this, x=optimvar('Xname',252,1); y=optimvar('Xname',252,1); ...

2일 ago | 0

Answered

Can you create an array of Constraints in an Optimisation MILP problem?

You can just write I=1:252; MymodelRP.Constraints.NewEnergyAllocation = ( Eih(I,1)+Eil(I,1)<=Cinew(I,1) );

Can you create an array of Constraints in an Optimisation MILP problem?

You can just write I=1:252; MymodelRP.Constraints.NewEnergyAllocation = ( Eih(I,1)+Eil(I,1)<=Cinew(I,1) );

3일 ago | 0

Answered

Converged to an infeasible point. fmincon stopped because the size of the current step is less than the default value of the step size tolerance but constraints are not satisfied to within the default value of the constraint tolerance.

There are no feasible solutions to your problem because it is impossible to satisfy the first equality constraint, zeros(1,leng...

Converged to an infeasible point. fmincon stopped because the size of the current step is less than the default value of the step size tolerance but constraints are not satisfied to within the default value of the constraint tolerance.

There are no feasible solutions to your problem because it is impossible to satisfy the first equality constraint, zeros(1,leng...

3일 ago | 0

Answered

Find n closest nonzero pixels for every nonzero pixel in an image

Using this information, I need to find the 10 closest nonzero pixels (indexed with their correponding distances to the central p...

Find n closest nonzero pixels for every nonzero pixel in an image

Using this information, I need to find the 10 closest nonzero pixels (indexed with their correponding distances to the central p...

4일 ago | 0

Answered

Interpolate y-values of two data sets on the same axes

ht1=sortrows([height1(:),temperature1(:)]); %pre-sort ht2=sortrows([height2(:),temperature2(:)]); Height=ht1(:,1); Temperat...

Interpolate y-values of two data sets on the same axes

ht1=sortrows([height1(:),temperature1(:)]); %pre-sort ht2=sortrows([height2(:),temperature2(:)]); Height=ht1(:,1); Temperat...

4일 ago | 1

Answered

Creating a vector from two points using 3 coordinates

I think this would complete your code. Times=1:10:length(Data.Time); J=numel(Times); F=nan(J,3); for j = 1:J ...

Creating a vector from two points using 3 coordinates

I think this would complete your code. Times=1:10:length(Data.Time); J=numel(Times); F=nan(J,3); for j = 1:J ...

4일 ago | 0

Answered

Illegal use of reserved keyword "switch"

Your switch block is not enclosed in a method...end block.

Illegal use of reserved keyword "switch"

Your switch block is not enclosed in a method...end block.

5일 ago | 0

Answered

Error using when cell2mat (with string characters)

Try char(Matrix) or string(Matrix)

Error using when cell2mat (with string characters)

Try char(Matrix) or string(Matrix)

5일 ago | 0

| accepted

Answered

Distance of a line by camera points

Well, I have no familiarity with the 3rd party Github library that you're using. However, it is a stereo camera class. So, it sh...

Distance of a line by camera points

Well, I have no familiarity with the 3rd party Github library that you're using. However, it is a stereo camera class. So, it sh...

5일 ago | 0

Answered

roots for nonlinear equation

You need to pose the problem in terms of real numbers only, [ere,fval]=fsolve(@eqns,[1,1]); ere=complex(ere(1),ere(2)) fval, ...

roots for nonlinear equation

You need to pose the problem in terms of real numbers only, [ere,fval]=fsolve(@eqns,[1,1]); ere=complex(ere(1),ere(2)) fval, ...

5일 ago | 0

Answered

How to inherite and intialize object values

What you've shown would work, but you have to actually assign the properties, function obj = outDef(obj1) o...

How to inherite and intialize object values

What you've shown would work, but you have to actually assign the properties, function obj = outDef(obj1) o...

6일 ago | 0

Answered

Gaussian smoothing filtering of 4D data

Does anyone know if Matlab has a function to smooth 4D or 3D data? For 3D data there is imgaussfilt3 (introduced in R2015a).

Gaussian smoothing filtering of 4D data

Does anyone know if Matlab has a function to smooth 4D or 3D data? For 3D data there is imgaussfilt3 (introduced in R2015a).

6일 ago | 0

Answered

Gaussian smoothing filtering of 4D data

imgaussfilt is for 2D only, but it wouldn't be too hard to implement your own 4D separable Gaussian filter just by using my Kron...

Gaussian smoothing filtering of 4D data

imgaussfilt is for 2D only, but it wouldn't be too hard to implement your own 4D separable Gaussian filter just by using my Kron...

6일 ago | 0

Answered

Illegal use of reserved keyword

You have written your code with C-language syntax. Matlab and C are not the same language.

Illegal use of reserved keyword

You have written your code with C-language syntax. Matlab and C are not the same language.

6일 ago | 0

Answered

nonlinear curve fitting a function on data

Are you sure the model isn't supposed to be a Gaussian+constant? It gives a much better fit. I used this FEX file to do the fit...

nonlinear curve fitting a function on data

Are you sure the model isn't supposed to be a Gaussian+constant? It gives a much better fit. I used this FEX file to do the fit...

6일 ago | 1

Answered

scatteredInterpolant in nonlinear system

Try this version, which uses nested functions instead. function nlsystem % my nonlinear system using scatteredInterpolant %...

scatteredInterpolant in nonlinear system

Try this version, which uses nested functions instead. function nlsystem % my nonlinear system using scatteredInterpolant %...

6일 ago | 0

| accepted

Answered

Associate numeric values to object arrays

I think this is what you mean? objectList={A,B,C}; result=objectList(x+1)

Associate numeric values to object arrays

I think this is what you mean? objectList={A,B,C}; result=objectList(x+1)

8일 ago | 0

| accepted

Answered

Genetic Algorithm (GA) with integer, equality and inequality constraint

You can eliminate the equality constraints by using them to solve for some of the variables in terms of the others. If you have ...

Genetic Algorithm (GA) with integer, equality and inequality constraint

You can eliminate the equality constraints by using them to solve for some of the variables in terms of the others. If you have ...

9일 ago | 0

| accepted

Answered

Problems implementing my own 2d DCT function. Smearing effect

Your forward and inverse DCT code look identical. In other words, you appear to be performing the forward DCT where you intended...

Problems implementing my own 2d DCT function. Smearing effect

Your forward and inverse DCT code look identical. In other words, you appear to be performing the forward DCT where you intended...

9일 ago | 1

| accepted

Question

Correspondence between intrinsic axes and world axes for imref objects

Suppose I have a 3D array of image samples I(i,j,k), i=1...M, j=1...N, k=1...P. In world coordinates, pixel spacing in millime...

10일 ago | 1 answer | 0

Answered

Indexing (extracting value from rows)

idx=sub2ind(size(A), ones(size(B)), B); A(idx)

Indexing (extracting value from rows)

idx=sub2ind(size(A), ones(size(B)), B); A(idx)

10일 ago | 0

| accepted