NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
aziz-be
Posts: 22
0 Kudos

runing matlab in Labview

السلام عليكم 

هل يمكن معالجة الصور عن طريق الماتلاب و اظهارها على الابفيو مثلا انا عندي الكود التالي:

 

 

% Load jpeg files 
orgImage = imread('Pixel.jpg', 'jpg'); 
figure(1); imshow(orgImage);
% 2D FFT 
fftImage = fftshift(fft2(orgImage)); % 2d fft 
ampImage= abs(fftImage); 
figure(2); imshow(ampImage, [0 10000 ]);

% Convolution (low-pass filtering) 
filter = fspecial('gaussian',[10 10], 4); % gaussian kernel 
filterImage = conv2(orgImage, filter); % convolution 
figure(3); imshow(filterImage, [0 250]);

% 2D FFT of filtered image 
fftFilterImage = fftshift(fft2(filterImage)); 
ampFilterImage= abs(fftFilterImage); 
figure(4); imshow(ampFilterImage, [0 10000 ]);

"out put"  ماهو 

الذي ساختاره لاظهار الصور على الابفيو مع العلم ان هذا الكود شغال
على الماتلاب.
دعوة للكل للتفاعل معنا في الموضوع وشكرا.

تحياتي

 

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page