Info

Diese Frage ist geschlossen. Öffnen Sie sie erneut, um sie zu bearbeiten oder zu beantworten.

edit-reducing the co-efficient

1 Ansicht (letzte 30 Tage)
kash
kash am 4 Feb. 2012
Geschlossen: MATLAB Answer Bot am 20 Aug. 2021
this is a code
I=imread('dock.jpg');
I=rgb2gray(I)
threshold=0.624525
NewData = I;
idx = I >= threshold;
NewData(idx) = threshold - eps(threshold);
size(I);
size(NewData);
the size of I and new data are same,,the co-efficients are not yet reduced,and i get all values as 1,
else for example i have a image,which id dock.jpg,is it possible to remove the noise pixels ,so the co-efficients m,ay be reduced,please give suggestiongs for both ,the image is

Antworten (1)

Walter Roberson
Walter Roberson am 4 Feb. 2012
After the line
I=rgb2gray(I);
add
I = double(I);
However, in previous discussions, I emphasized that this threshold is to be applied to the coefficients, not to the image. You are thresholding the image. You should be applying your T-cube algorithm (or whatever it was called) to your image to get the coefficients, and then after thresholding you would reconstruct the image based upon the altered coefficients.
  2 Kommentare
kash
kash am 5 Feb. 2012
thanks walter ,i thought the pixles was the the co-efficients ,sorry to ask u can u plz help in getting the code for t-cube algorithm or other to get co-efficients please
Walter Roberson
Walter Roberson am 5 Feb. 2012
I do not have any code for the decomposition routine you referred to earlier (whose real name I cannot locate at the moment, as you deleted that Question.)

Diese Frage ist geschlossen.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by