photo

Hadi Ghahremannezhad


Last seen: nästan 2 år ago Active since 2019

Followers: 0   Following: 0

Statistics

  • Thankful Level 3

View badges

Feeds

View by

Question


im2uint8 only generates 0 or 255
I am trying to present an image of class double using imshow. suppose this is the image: a = [78.4630409671845,90,0; 78.4...

nästan 4 år ago | 1 answer | 1

1

answer

Question


How to compare two 3D matrices element-wise?
I have two RGB images (3D matrix: x, y, z) of the same size, and I wanted to compare the corresponding values. Suppose there ar...

nästan 4 år ago | 1 answer | 0

1

answer

Question


How to apply conditions to fill an area in 3D space?
I wanted to fill an area in 3D space using some conditions on a vector. Suppose the vector is: x1 = 100; y1 = 100; z1 = 100;...

nästan 4 år ago | 0 answers | 0

0

answers

Question


Watermarking in the Frequency Domain
I am new in Matlab and I have an assignment that is asking for watermarking an image using DCT transform: Read Lin.jpg color im...

ungefär 4 år ago | 0 answers | 0

0

answers

Question


How to get the threshold value from Otsu's method?
On MathWorks webpage for the function imbinarize it says: "Use graythresh or otsuthresh to compute a global image threshold." ...

ungefär 4 år ago | 0 answers | 0

0

answers

Question


how to apply low pass and high pass filters using fft2 and fftshift?
I am trying to apply low-pass and high-pass filters on a jpg image. The filters are calculated by: function [cL,cH] = getfilte...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


How to know the size of imageDatastore?
Is there a function that returns the total number of images in an imageDatastore? For example, if I load images from a director...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


How to binarize a grayscale image with multiple thresholds?
I am trying to convert a grayscale image into a binary image with two thresholds: img = a grayscale image b = the output bin...

ungefär 4 år ago | 1 answer | 0

1

answer

Question


How to overlay a binary mask over an rgb image?
I am trying to overlay a binary mask over an RGB color image. I want to change the white area of the mask to a transparent red a...

nästan 5 år ago | 1 answer | 0

1

answer

Question


How to perform a sparse eigendecomposition in order to compute only the eigenvectors of smallest eigenvalues?
I have a large n * n sparse matrix called L. k is a given value. I am supposed to do this: "perform a sparse eigendecomposition...

ungefär 5 år ago | 0 answers | 0

0

answers

Question


How to create a custom matrix?
I want to create a matrix that look like this: The first n rows are all 0. The second n rows are calculated separately by som...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to enforce element-wise condition in matrix operations?
I am trying to use \ for Euler's backward method: where dt and lambda are constant numbers like: dt = 0.01 lambda = 0.5 an...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to implement backward Euler's method?
I am trying to implement these formulas: Forward Euler's method: this is what I have tried: x_new = (speye(nv)+ dt * lambda...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to calculate the volume of a 3D triangular mesh?
I have a pyramid with these vertices (each side is a triangle): [-4 0 5; 1 -5 5; 1 0 1; 1 5 5; 1 0 0] How can I calculate ...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


Matrix division does not work because of matrix dimensions
I have two matrices: A: 5 by 5 B: 5 by 3 How can I claculate matrix division as B divided by A? I have used: B / A B \ ...

ungefär 5 år ago | 1 answer | 0

1

answer

Question


How to replace for loop with vectorization?
Is there any way I can replace this for loop with a vectorized approach? v = zeros(4, 3); ii = [1 ; 2 ; 3 ; 1 ; 3 ; 4]; res =...

ungefär 5 år ago | 2 answers | 0

2

answers

Question


How to perform norm on each row of a matrix?
I have a matrix and each row of the matrix is a vector. I want to perform norm function on each row of this matrix and save the ...

ungefär 5 år ago | 2 answers | 1

2

answers

Question


How to calculate determinant of matrices without loop?
I am new to Matlab and this might seem very easy. I have 2 matrices: a = [1 1 1; 2 2 2 ; 3 3 3 ; 4 4 4 ; 5 5 5]; ...

ungefär 5 år ago | 3 answers | 0

3

answers