This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Dynamic Form that changes Combo-box value based on value on another Combo-box without reload | |
Original Code By ATHUL JAYARAM | |
athuljayaram@gmail.com | |
*/ | |
<p> | |
<div id="label" style="width: 140px; text-align: right; display: inline-block;">NAME: </div> | |
<input name="firstname" type="text" id="firstname" placeholder="First" size="15" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% Original Code By ATHUL JAYARAM | |
% athuljayaram@gmail.com | |
function imout = myimfcn(im) | |
% IM - input image. | |
% IMOUT - output image. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=imread('Jellyfish.jpg'); | |
figure,imshow(a) | |
R=a(:,:,1); | |
G=a(:,:,2); | |
B=a(:,:,3); | |
% figure,imshow(R) | |
%figure,imshow(G) | |
% figure,imshow(B) | |
subplot(2,2,1) | |
imshow(a) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=imread('Penguins.jpg') | |
subplot(2,2,1) | |
imshow(a); | |
title 'Original Image' | |
b=im2double(a) | |
s=(1*log(1+b))*256; | |
s1=uint8(s) | |
subplot(2,2,2) | |
imshow(s1); | |
title 'c=1' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=imread('Penguins.jpg'); | |
subplot(2,2,1); | |
imshow(a); | |
title 'Original Image'; | |
b=im2double(a); | |
a1=input('enter value a'); | |
ga1=input('enter value gamma'); | |
s=(a1*(b.^ga1))*256; | |
s1=uint8(s); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=imread('lena.png'); | |
subplot(2,2,1); | |
imshow(a); | |
[M,N]=size(a); | |
title 'Original Image'; | |
r1=input('enter value r1: '); | |
r2=input('enter value r2: '); | |
for i=1:1:M | |
for j=1:1:N | |
if a(i,j)>=r1 && a(i,j)<=r2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a=imread('Koala.jpg'); | |
b=255-a | |
subplot(1,2,1) | |
imshow(a) | |
title 'Original Image' | |
subplot(1,2,2) | |
imshow(b) | |
title 'Negative Image' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% code by juniorhero to show image in axes in gui | |
axes(handles.axes2); | |
imshow('D:\maj proj\samples\Lenna.png') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% --- Executes on button press in pushbutton2. | |
function pushbutton2_Callback(hObject, eventdata, handles) | |
handles.output = hObject; | |
[fn pn] = uigetfile('*.png','select png file'); | |
complete = strcat(pn,fn); | |
set(handles.edit1,'string',complete); | |
I = imread(complete); | |
imshow(I,[]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function pushbutton2_Callback(hObject, eventdata, handles) | |
% above line of code is default line ofcode for button | |
% an example to open image files only | |
% when button is clicked, a dialog box appears to select the file | |
handles.output = hObject; | |
[fn pn] = uigetfile( { | |
'*.png;*.jpg;*.jpeg;*.gif','Image Files (*.png, *.jpg, *.jpeg, *.gif)'; ... |
OlderNewer