Community Profile

photo

Hadi Ghahremannezhad


Last seen: oltre un anno fa Attivo dal 2019

Statistiche

  • Thankful Level 3

Visualizza badge

Content Feed

Visto da

Domanda


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...

circa 3 anni fa | 1 risposta | 1

1

risposta

Domanda


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...

circa 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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;...

circa 3 anni fa | 0 risposte | 0

0

risposte

Domanda


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...

oltre 3 anni fa | 0 risposte | 0

0

risposte

Domanda


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." ...

oltre 3 anni fa | 0 risposte | 0

0

risposte

Domanda


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...

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 3 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

circa 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 4 anni fa | 0 risposte | 0

0

risposte

Domanda


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...

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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...

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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 ...

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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 \ ...

oltre 4 anni fa | 1 risposta | 0

1

risposta

Domanda


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 =...

oltre 4 anni fa | 2 risposte | 0

2

risposte

Domanda


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 ...

oltre 4 anni fa | 2 risposte | 1

2

risposte

Domanda


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]; ...

oltre 4 anni fa | 3 risposte | 0

3

risposte