I found some scripts that handle only gray images with long process times.
function [Y,Xpad] = snn12(X,WINSZ,true)
% [Y,Xpad] = SNN(X[,WINSZ][,progress])
% perform symmetric nearest-neighbor nonlinear edge-preserving filtering on
% an intensity image
%
% * If no window size WINSZ is specified, the default is 5.
% * Setting progress to a nonzero value causes SSN to display
% the current row it is processing.
% Description:
% The SNN filter works by looking at each pair of pixels opposite the
% output (center) pixel. From each pair, the one that is closest to
% the output pixel is used to compute the output (mean of all selected
% pixels).
% Notes:
% Image is converted to double format for processing.
% Copyright Art Barnes, 2005 artbarnesieeeorg
if nargin >= 3
verboseFlag = true;
else
verboseFlag = false;
end
if nargin < 2
WINSZ = 3;
if ~isa(X,'double')
X = im2double(X);
PADDING = floor(WINSZ/2);
Xpad = padarray(X,[PADDING PADDING],'symmetric','pre');
[padRows,padCols] = size(Xpad);
Y = zeros(size(X));
nRowIters = length((PADDING+1):(padRows-PADDING));
count = 1;
for i = (PADDING+1):(padRows-PADDING)
for j = (PADDING+1):(padCols-PADDING)
% window
W = Xpad((i-PADDING):(i+PADDING),(j-PADDING):(j+PADDING));
Wtop = W(1:PADDING,:)';
Wtop = Wtop(:)';
Wtop = [Wtop W(PADDING+1,1:PADDING)];
Wbot = W((end-PADDING+1):end,:)';
Wbot = Wbot(:)';
Wbot = [W(PADDING+1,(end-PADDING+1):end) Wbot];
Wbot = fliplr(Wbot);
NN = [Wtop; Wbot];
NNdiff = abs(NN - W(PADDING+1,PADDING+1)); % or use X(i,j)
[y,ids] = min(NNdiff);
for k = 1:length(ids)
NNnearest(k) = NN(ids(k),k);
Y(i,j) = mean([NNnearest Xpad(i,j)]);
%if verboseFlag & ~mod(count,10)
% fprintf('SNN: %d/%d\n',count,nRowIters);
%end
count = count + 1;
What were the changes you made in this program sir..? bcoz I got the same problem. It doesn't work. It shows error on the "Y(i,j) = mean([NNnearest Xpad(i,j)]);
" line..Thanks for your response.
In remote sensing, mixed pixel characterization and spatial spectral characterization are same. I've little bit confusion.
04 May 2015 5,610 0 View
Want to know recent trends in mixed pixel problem characterization and classification methods in remote sensed imagery.
02 March 2015 5,240 3 View
I find HSI images on this link: http://www.ehu.eus/ccwintco/index.php?title=Hyperspectral_Remote_Sensing_Scenes. But all are having more than 10 no. of channels. Want to know how can I use this in...
02 March 2015 3,144 2 View
I want to study sparse representation of image to denoising applications. If anyone knows basic concepts with paper, matlab source, share it. Thanks in advance
31 December 2014 8,630 4 View
11 December 2014 258 4 View
I want to know the difference between wideband and cooperative spectrum sensing methods in cognitive radios.
11 December 2014 4,549 6 View
I need to estimate the IMFs of EMD of given image. I use PSO to estimate the IMFs of EMD. I don't have much knowlegde about PSO. Anybody help me in PSO programming in Matlab.
10 November 2014 5,405 6 View
I need practical view of PSO like bio intelligence algorithm applications in image segmentation. I'm naive in PSO like concepts. I don't know how to apply it to image segmentation concepts.
06 July 2014 8,865 6 View
I want to know how to extract the features using PCA, if matlab code given, useful to me.
05 June 2014 7,011 3 View
I went through some papers using mean & std deviation to validate the SVM classifier results in hyper spectral image processing classification.
02 March 2014 6,893 4 View
i would to know some of the research gaps in the artificial intelligence field in most african countries.
03 March 2021 6,145 3 View
I have selected brain tumor images ...but now found that already lots of research done n this topic.
03 March 2021 5,774 3 View
dear community, my model is based feature extraction from non stationary signals using discrete Wavelet Transform and then using statistical features then machine learning classifiers in order to...
03 March 2021 6,994 5 View
I'm involved in a study of odor control technologies for municipal wastewater treatment plant. One of the control options involves a chemical 2-stage (acid/alkaline) packed bed scrubber. The...
03 March 2021 3,661 2 View
Do you have some recommendations approaches on Image processing and classification of plant diseases using TensorFlow/Keras?
02 March 2021 1,493 4 View
Working on chandrayaan-2 DFSAR data, there are three datasets available: 1) Slant range image data product: The slant range complex image file. Each pixel is represented by two 4-byte floating...
02 March 2021 8,481 3 View
I would like to research on MR images (0.5T and 3T). Can you please suggest some websites that I can download dataset including both 0.5T and 3T MR images? Thank you.
02 March 2021 7,735 3 View
Dear Researchers I am trying to perform a PIL simulation using STM32F4 Discovery board and comunication serial USB TO TTL. During simulation I receive the following timeout error: An error...
01 March 2021 2,327 1 View
The following code (see 1st 2 images attached) is used to produce PID controller values that are designed to control the system (G). The code finds the PID controller values (noted as k) by using...
28 February 2021 6,560 14 View
I have input and output data set for "ANFIS modeling in MATLAB", and I am getting some negative predicted values of output in testing. However, the predicted values of output in training are...
28 February 2021 3,459 3 View