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
function [ output ] = histogram_equalization( input ) | |
%HISTOGRAM_EQUALIZATION A technique for adjusting image intensities to enhance contrast. | |
% Example | |
% ------- | |
% Enhance the contrast of an intensity image using histogram | |
% equalization. | |
% | |
% I = imread('Peppers.bmp'); | |
% J = histeq(I); | |
% figure, imshow(I), figure, imshow(J) |
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
/* Nama file: prima.c | |
Menentukan bilangan prima */ | |
#include <stdio.h> | |
int main() | |
{ | |
int i, habis = 0; | |
long x; |
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
/* Nama file: hrfubah.c | |
Mengubah huruf kecil menjadi huruf besar */ | |
#include <stdio.h> | |
#define MASKCHAR 32 | |
int main() | |
{ | |
unsigned char ch; |
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
/* Nama file: hitungk.c * | |
* Menghitung jumlah karakter */ | |
#include <stdio.h> | |
int main() | |
{ | |
int k, nspasi, nlain2, ndigit; | |
nspasi = nlain2 = ndigit = 0; |