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;
I am writing research orientationed book
24 December 2020 2,595 3 View
I have to compare yield parameters of a tree crop grown under three irrigation methods. But these systems are already established separately in three adjacent fields. Since I can not follow a RCBD...
21 December 2020 3,065 5 View
Hey, I am conducting an event study with a short event window (lets say 3 or 5 days). I have a lot of variables, but most of them are fixed over that short period of time (GDP per capita, GDP...
11 November 2020 3,582 6 View
Good Morning All, I am pursuing phd in computer science. I am thankful to all the people who are guiding me whenever I have been stuck. I have got a list of...
28 October 2020 5,317 3 View
Hello Researchers The support for g_mmpbsa is not extended for the latest versions of gromacs (2020). I have already performed 200ns simulations and wish to perform PBSA calculations. What could...
28 September 2020 9,840 2 View
Do you think that covid 19 virus separates through the air and make infections?
14 September 2020 7,956 7 View
Suggest methods used for extraction of thiazole analog derivatives from marine, plant, animals, and microbes.
29 August 2020 5,428 3 View
I want to study the interaction analysis of chromium 6 with the proteins. There is a single molecule of chromium 6+ in PubChem and ChEMBL. I want it as a 3D lattice structure. How to get it?
15 August 2020 4,251 0 View
Want to know about current research trends in Machine learning and Natural language Processing (NLP) - Code-mixed text in detail as soon as possible. This is for a research project of...
09 August 2020 8,892 10 View
Dear all, Can you go through the research article links and review and cite. https://scholar.google.com/citations?user=bKF5yGsAAAAJ&hl=en&authuser=2 Happy if connecting with researchers to...
05 August 2020 8,278 2 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