cover_window( inp_img,w )

버전 1.0.0.0 (1.41 KB) 작성자: Anand g
get the neighbor array from single pixel in the array
다운로드 수: 208
업데이트 날짜: 2019/10/11

라이선스 보기

All the filters have needed neighbor data from the current pixel in the image,here this function(res_window=cover_window(how many neighbor value for row ,how many neighbor value for column ,input image) produce the result( res_window(row,col,total size))
%%
%input
%inp_img=2d data(row * col)
%w=cover size
%w=[3 3] = 3x3 cover pixel generation
%output
%o_img=result 3d
%o_img(w(1),w(2),r*col)
% if
% inp_img=[1 2 3; 4 5 6;];
% w=[3 3];
% Soloution
% it will construct new image
% new_img=[0 0 0 0 0;0 1 2 3 0;0 4 5 6 0;0 0 0 0 0]
% result
% o_img(:,:,1)=[0 0 0;0 1 2;0 4 5]
% o_img(:,:,2)=[0 0 0;1 2 3;4 5 6]
%finally
% o_img(1:3,1:3,6)
% example
a=imread('pears.png');
b=rgb2gray(a);
c=cover_window( b,[3 3]); %%3x3 window construction
%

인용 양식

Anand g (2024). cover_window( inp_img,w ) (https://www.mathworks.com/matlabcentral/fileexchange/48239-cover_window-inp_img-w), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2010a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Neighborhood and Block Processing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0