Hello Although no one has helped me yet,but still I am hopeful. Here is another problem I ran into during running a MATLAB code: I got a matrix from a gray image(lets name it A); then, when I tried to do " B=A-A.^2" the answer for B was a zero matrix!! (FYI, elements of A are ranged from 0 to 255).(it gives me a zero matrix and then when I try to make a division like C=K/B, it gives me a matrix which all of its elements are 255!!) The subtraction's result is obviously incorrect which makes my code results to be wrong! I can't get why? Could any one help me on this please? :\
MATLAB: Why does the subtraction gives me a rong matrice
matrix subtractionzero matrix
Related Question
- Imshow(uint8(imagematrix)) and imshow(int8(imagematrix)) gives different results although pixel values are between 0-255
- Error using image Error using image TrueColor – How to plot images created by joining arrays instead of using imread
- Not (~) operation of binary image after subtracting double data type of binary images. Could I have the explaination of this
- How to plot a histogram from 0-255
- MATLAB documentation claims that the output of rgb2ycbcr MATLAB inbuilt command is in the range [0, 1] for RGB input image of class double. However, its output is not in the mentioned range. Why
Best Answer