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> | |
#include<omp.h> | |
#include "jikken.h" | |
int main(int argc, char *argv[]) | |
{ | |
/* ここに変数を定義します */ | |
int size; | |
int i,j=0,k=0; |
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> | |
#define ID "/*?? */" | |
#define NAME "/*?? */" | |
//---------------------------------- | |
typedef enum { OK, EMPTY, FULL } result_t; | |
// キューの要素(ノード)を表す構造体 |
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> | |
#include <math.h> | |
/* 関数のプロトタイプ宣言 */ | |
unsigned char *read_ppm(char *fname, int *width, int *height); | |
void save_pgm(char *fname, unsigned char *gray, int width, int height); | |
void trans(unsigned char *src, unsigned char *out, int width, int height, int g[]); | |
void edge5(unsigned char *src, unsigned char *out, int width, int height, int threshold); | |
void edge6(unsigned char *src, unsigned char *out, int width, int height, int threshold); | |
void sobel(unsigned char *src,unsigned char *out,int width,int height,int threshold); |
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
extern void make_matrix(unsigned int size, int flag,double **a,double **b,unsigned int number) | |
{ | |
int i,j; | |
*a=(double*)malloc(sizeof(double)*size); | |
*b=(double*)malloc(sizeof(double)*size); | |
for(i=0;i<size;i++){ | |
for(j=0;j<size;j++){ | |
a[i][j]=flag; | |
b[i][j]=flag; | |
} |
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
extern void make_matrix(unsigned int size, int flag,double **a,double **b,unsigned int number) | |
{ | |
int i,j; | |
for(i=0;i<size;i++){ | |
for(j=0;j<size;j++){ | |
a[i][j]=flag; | |
b[i][j]=flag; | |
} | |
} | |
} |