Community Profile

# Mohsin Shah

### USTC China

Last seen: mehr als ein Jahr vor Aktiv seit 2011

I am a student

#### Statistics

Abzeichen anzeigen

#### Content Feed

Anzeigen nach

Frage

Extracting multiple numerical values from an image
Is it possible to extract multiple numerical values from the this image?

etwa 2 Jahre vor | 1 Antwort | 0

### 1

Antwort

Beantwortet
Extracting histogram each row of matrix
I hope this will solve your problem. A = [0 4; 0 -5; 0 -1; 0 -1; 2 -1; 3 3; 2 4; 4 0; 0 1; 0 -2; 0 -1; 0 -1; 0 -1;2 -1;2 -1;3 ...

mehr als 3 Jahre vor | 1

Frage

How to generate a random number of n bits length?
Let's say a function takes input n as the bit length and outputs a random number. For example, for n = 4, the output range is [0...

mehr als 4 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

How to add to an image white Gaussian noise of zero mean and standard deviation of certain gray levels?
Hello everyone, How can we add white Gaussian noise to an image with zero mean and standard deviation of 64 gray levels? I do kn...

mehr als 4 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

Code computes histogram equalization not similar to Matlab's histeq function
I have a written a simple code for histogram equalization based on this formula: HistEq = (max gray leve/total no of pixels)*cum...

mehr als 4 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to process a subset of a matrix
I have a nxm matrix and I want to divide the first R rows by a certain number. For example, 2 4 6 8 10 12...

fast 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

A Slow Running Code
As a part of my project, I am using VPI's powermod function for computing matrix raised to a high power. I do know that powermod...

fast 5 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Image display with uint8 and double
Can someone explain why the following image, 'yinyang.png', is displayed differently when I use uint8 and double in the imshow f...

fast 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to process each non-overlapped block of an image after it's sub-division?
My function sub-divides an image into non-overlapping blocks (each block is a cell matrix). I wonder how to process each block a...

fast 5 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

How to make my code run faster?
I have written a small piece of code for computing a list of numbers that are relatively prime to a big integer N. This code tak...

fast 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Why there is a difference between the dct computed by the MATLAB dct function and one computed by dct matrix multiplication?

fast 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Find out number of bits needed to represent a positive integer in binary?
How to compute the bit length of a positive integer-the number of bits to represent a positive integer. For example, we have: ...

mehr als 5 Jahre vor | 4 Antworten | 0

### 4

Antworten

Frage

Can we use 'parfor' in user defined function?
Hello, Can we use 'parfor' in used defined functions? I want to use parfor in user defined functions to improve the speed of my ...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Randomizing the rows of a matrix and reversing
Hello, I have a 988 x 3 matrix (say the vertices of 3D object) and I want to randomize the rows of this matrix and then do the r...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Non-repeating random integer generator with a seed
Hello, How to generate random integers with a seed value. I know about randi and ranperm. rnadi can use a seed value to generate...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Difference between MATLAB tic-toc time and actual time measured with a stop watch
Hello, this may seem stupid but I tried to check the time measured by tic-toc and the actual time measured with the help of stop...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to record the neighbors of each vertex of a 3D mesh model?
Given the vertex list which contain the indices of vertices, x-axis coordinate, y-axis coordinate, and z-axis coordinate, and th...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Euler totient function of number
I want to calculate Euler totient function for a number N. Euler function should give me an array of integers that are relativel...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to restore the negatives signs of numbers in a matrix?
I have a matrix of positive and negative integers. How to remove the signs of negative integers and make them positive integers?...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How can we display an image with large pixel values say in the range [421-807831].
Hello I am using Paillier Cryptosystem for encrypting images. I have generated an image variable with min pixel value 421 and ma...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

Generation of random co-prime integers modulo n
Suppose we have Lena image of 512x512 pixels and we want to generate random integers for every pixel of Lena image (512x512)that...

mehr als 5 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to get mod of large numbers?
I have this calculation: c=(5652)^42.(23)^77mod5929, when i use scientific calculator I get c=4624 an when I do this by MATLAB m...

fast 6 Jahre vor | 2 Antworten | 0

### 2

Antworten

Frage

How to calculate and plot the histogram of DCT coefficients of an image?
How to calculate and plot the histogram of DCT coefficients of an image?

fast 6 Jahre vor | 1 Antwort | 0

### 1

Antwort

Frage

How to distinguish between different probability distributions?
Suppose you are given a distribution e.g. histogram of DCT coefficients of an image. How to decide that its a Guassian or Laplac...

fast 6 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Hello, How to read icon image pages by MATLAB? Icon images are usually made of a number of different size of the ...

etwa 9 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Solving Nonlinear Equation (Newton Raphson Algorithm)
Please help me solve the following question in Matlab: Write a Matlab code which uses Newton Raphson Method to compute an app...

etwa 10 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Video
How can i run a video file in Matlab?

mehr als 11 Jahre vor | 3 Antworten | 0

### 3

Antworten

Frage

FDTD Simulation fiber optics
can any body help me in simulating the Non-linear Schrodinger Equation for pulse propagation in optical fiber using the FDTD (Fi...

mehr als 11 Jahre vor | 0 Antworten | 0

### 0

Antworten

Frage

Calculating sin and cos functions
Hello, i calculated the value of sin(45) in Matlab, the result was sin(45)=0.8509 and for cosin i got cos(45)= 0.5253. From gene...

mehr als 11 Jahre vor | 6 Antworten | 0

### 6

Antworten

Frage

Image Processing
May anyone tell me ? 1-how to read the alpha channel? 2-How to set new alpha channel of a image? 3-how to show image with ...

mehr als 11 Jahre vor | 1 Antwort | 0

Antwort