This file contains hidden or 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
#include<stdio.h> | |
#include<stdlib.h> | |
void polynomial_insert(int *poly,int poly_size); | |
void polynomial_add(int *poly_1,int *poly_2,int *add,int poly_1_size,int poly_2_size); | |
void polynomial_display(int *poly,int poly_size); | |
int main() | |
{ | |
int p1_size,p2_size,size,i; |
This file contains hidden or 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
#include<stdio.h> | |
#include<io.h> | |
void create_folder(int n) | |
{ | |
int i; | |
char name[256]; | |
for(i=0;i<n;i++) | |
{ |
This file contains hidden or 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
#include<stdio.h> | |
#include<stdlib.h> | |
/*Struct flood require 256*4=1Kb */ | |
struct flood{ | |
long int a[256]; | |
}*temp; | |
void main() |
This file contains hidden or 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
%Dialog Box to browse and select image | |
[name path]=uigetfile({'*.jpg','IMAGE Files (*.jpg)'},'Choose Image for Thresholding'); | |
A=imread(strcat(path,name)); | |
%converting rgb to gray | |
A=rgb2gray(A); | |
for i=1:255 | |
figure(1),imshow(A,[i 255-i]); | |
pause(0.01); | |
end |
This file contains hidden or 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
#! /usr/bin/expect -f | |
spawn telnet 192.168.1.1 | |
expect "Login:" | |
send "username\r" | |
expect "Password:" | |
send "password\r" | |
sleep 1 | |
send "?\r" | |
interact |
This file contains hidden or 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('401566.jpg'); %Change 401566.jpg with your image file | |
A=rgb2gray(A); | |
imshow(255-A); %(L-1)-r;L=256(8 bit gray scale) |
This file contains hidden or 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
%% Log Transform | |
% Equation s=c*log(1+r) | |
A=imread('401566.jpg'); | |
A=rgb2gray(A); | |
imshow(log(double(A)+1)); |
This file contains hidden or 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
%% Power-Law Transformation | |
% Equation s=cr^a | |
A=imread('401566.jpg'); | |
A=rgb2gray(A); | |
c=1; | |
a=2.2; | |
imshow(uint8(c*(double(A).^a))); |
This file contains hidden or 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
#include<stdio.h> | |
void Dec2Hex(int no){ | |
int hex=0; | |
if(!no) | |
return; | |
else { | |
hex=no%16; | |
Dec2Hex(no/16); | |
} |
This file contains hidden or 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
while true | |
do | |
echo 1 > /sys/class/gpio/gpio23/value | |
cat /sys/class/gpio/gpio23/value | |
sleep 1 | |
echo 0 > /sys/class/gpio/gpio23/value | |
cat /sys/class/gpio/gpio23/value | |
sleep 1 | |
done |
OlderNewer