image thumbnail

updated 4 months ago

Figlet Statement Generator by Michael Chan

Demonstrate how to create figlet statements from font templates. (utility)

ascii2dec( asciiArray )

asciiStringPressIntoFigletFonts( stringToPressFigletFont )

recognizeAscii( stringToPressFigletFont )

image thumbnail

updated 5 months ago

Big Integer Arithmetic by Michael Chan

Demonstrate big integer arithmetic, such as multiplication, addition, subtraction, etc. (big integer)

additionConventional (a, b)

bigIntegerAsString (a)

bigIntegerIsEqual (a, b)

image thumbnail

updated 5 months ago

Serial Downloader by Michael Chan

To demonstrate how to create sniffer to scan for (published or hidden) files on a server. (files, search)

serialDownloader( header_Path, rangeOfIndices, tail_Path)

usage_serialDownload.m

image thumbnail

updated 5 months ago

Linear congruential random number generator by Michael Chan

Demonstrate the principal idea of getting random bits (random, statistics)

bin2decForBigInt( longBits )

checkBitsPercentages ( binBits )

dec2binForBigInt ( bigInt )

image thumbnail

updated 5 months ago

Modular Exponentiation by Michael Chan

y = x^e mod n (arithmetic, modular exponentiatio...)

breakBitsIntoEqualSegments( bitString, lengthOfEachSegmen...

modularExponentiation( base, exponent, n )

modularExponentiation_binaryExponent_ML_typeI( x, e, n )

image thumbnail

updated 6 months ago

Convert Image To And From Graph Coordinates by Michael Chan

Illustrates mapping of binary image to graph coordinates and vice-versa. (image, plot, coordinates)

mapPixelsToCoordinatedPlotGraph(pixeliZedScratchPad, ...

plotCoordinatesToImagePixels(x_coordinates, y_coordinates...

usage_ImageToAndFromGraphCooridinates.m

image thumbnail

updated 6 months ago

Using Gauss' Algorithm to solve simultaneous linear congruences for Chinese Remainder Theorem by Michael Chan

Gauss' Algorithm to solve for Chinese Remainder Theorem (CRT) (number theory)

GaussAlgoForCRT( c, n )

modinv.m

usage_GaussAlgoForCRT.m

image thumbnail

updated almost 2 years ago

Simple Object Creation in Matlab Object Oriented Programming (OOP) by Michael Chan

The objective is to provide a simple sample code to illustrate OOP in Matlab. (oop, objectoriented progra..., data formatting)

cell2str(c,n,mode)

cell2string( cellString )

dynamicVariableNaming

image thumbnail

updated 2 years ago

Image Description Notes (with LSB encoding) by Michael Chan

The objective is to illustrate how certain reference may be made to a given image. (text, bit, data hiding)

allocateDataBitsByN_SizeBitsIntoByteArrays( bitStream, N )

bitStreamToIntArray( bitStream )

convertInt8ToBitStream( dataToBeInsertedAsBits_inDec )

image thumbnail

updated 2 years ago

Embedding/ Hiding Image Within Image (with LSB encoding) by Michael Chan

The objective is to illustrate how an image may be embedded or hidden within another given image. (bit, data hiding, description)

allocateDataBitsByN_SizeBitsIntoByteArrays( bitStream, N )

bitStreamToIntArray( bitStream )

convertInt8ToBitStream( dataToBeInsertedAsBits_inDec )

image thumbnail

updated 2 years ago

Wavelet Decomposition For Images by Michael Chan

The demo decouples the wavelet operations from the plotting. (wavelet, image processing, multiresolution)

PSNR(A,B)

displayResultantWaveletImages(A, H, V, D, levelOfDecompos...

observeWaveletDecompositionBenchmark_N_levels.m

image thumbnail

updated almost 3 years ago

Perspective Control/ Correction by Michael Chan

The objective is to give a simple demonstration on perspective control using 4 corners of a plane. (image processing, perspective, control)

Get4Points( corner_coordinates )

fast_corner_detect_9(im, threshold)

sortCoordinatesAccordToX( coordinates )

image thumbnail

updated almost 3 years ago

Coordinates Scanning by Michael Chan

The objective is to demonstrate some coordinates tracing tools. (image, coordinates, navigation)

detectCornerEdge (area, coordinates)

directionOfPixelRelativeToReferencePixel(positionOriginal...

directionOfPixelRelativeToReferencePixel_1pixelAway(posit...

image thumbnail

updated almost 3 years ago

Help References by Michael Chan

The objective is to illustrate how certain references may be made to the codes. (equation, documentation, linking)

Example4_1_7(option)

convx( M, h, L, x )

generateSquareWave( length, periodicSamples )

image thumbnail

updated almost 3 years ago

Byte data format bits manipulation by Michael Chan

Demonstrate ascii character/ symbol convert to/ from byte formats of decimal, binary and hexadecimal (ascii, character, symbol)

FormatHexStr(Str,format)

asciiToBaseValues(textContents, mode)

baseValuesToAscii(textContentsInBaseValues, mode)

image thumbnail

updated almost 3 years ago

Hunt For Local Maxima, Minima, Plateau by Michael Chan

Illustrates identification of local maxima, minima or plateau, for exit criteria for long processes. (bioinformatics, image processing, intensive)

benchmarkSampleFunction (thresholdInitial_Trial)

determineLocationsOfMaximaMinimaPlateauFromProclivityFeat...

determineProclivity( currentInput, previousInput )

image thumbnail

updated 3 years ago

Card dealing by Michael Chan

To provide sample utilities and demonstrate card shuffling and dealing. (statistics, monte carlo, card dealing)

cell2str(c,n,mode)

displayImagesInDirectory(targetFolder, imageFiles, imageF...

generateShuffledIndex(lengthOfShuffledIndex)

image thumbnail

updated 3 years ago

Memory Selection Coverage by Michael Chan

Observation on partial scanning for power conservation and enhance speed performance. (statistics, monte carlo)

generateShuffledIndex(lengthOfShuffledIndex)

plotResults.m

startCoverageHitExperiments.m

image thumbnail

updated 3 years ago

Symbol Dealing Distributor by Michael Chan

The utility may be used for example card dealing or similar operations. (data, card dealing, distribution)

symbolDealingDistributor( numberOfRecipientsToDealTo, tex...

usage_symbolDealingDistributor.m

image thumbnail

updated 3 years ago

Region Coloring by Michael Chan

To provide sample usage for highlighting selected region. (statistics)

change1colorOnRGBToAnother(rgbImage, toleranceOfColorDete...

plotFigureAsSubplot(image, titleString, numberOfPlotsPerR...

selectStartingPointAndSizeOfSelectedRegion.m

image thumbnail

updated 3 years ago

Character/ symbol frequency distribution analaysis on vintage ciphers by Michael Chan

Demonstrates character/ symbol frequency distribution analysis (vintage ciphers, caesar cipher, vigenere cipher)

caesarCipher( inText, cipherMode )

plotCharDistributionFreq( textContents, fileTarget )

plotCharDistributionFreqDiff( textContents )

image thumbnail

updated 3 years ago

Extended Euclidean Algorithm by Michael Chan

Extended Euclidean algorithm is particularly useful when a and b are coprime, since x is the multip (extended euclidean al..., prime)

extendedEuclidean_backSubstitution (d, q, a, b, f)

extendedEuclidean_forward(p, q)

usage_extendedEuclidean.m

image thumbnail

updated 3 years ago

IEEE 754 Precision Format by Michael Chan

The objective is to illustrate the IEEE 754 double and single precision formats. (data, format, double)

bin2hex (binary)

containsDecimal (value)

getFloatBinary (residue, numberOfBitsAlocatedForDecimal)

image thumbnail

updated 3 years ago

Generate Exhaustive Permutations by Michael Chan

Illustrates generation of exhaustive permutation of symbols given the symbolic bases. (bioinformatics, permutation, combinatorics)

computePermutationSeqForSpecificIndex (bases, lengthOfPer...

convertIndexRepresentedPermutationsToSymbolPermutations (...

generateExhaustivePermutation(bases, lengthOfPermutation)

image thumbnail

updated almost 4 years ago

Line Data Extraction From Input File by Michael Chan

The objective is to illustrate the data sieving and categorization by field identifier. (data, fields, values)

cell2str(c,n,mode)

pickFieldsAndValuesSetFromFile( targetFile )

removeTagsEmptyLinesFromAlignmentFiles(lineSetMatrix, tag...

image thumbnail

updated almost 4 years ago

Brush Smaller Image Or Matrix Over A Larger Matrix, Select ROI with resizeable window by Michael Chan

Illustrates how a smaller matrix may be 'brushed' against a larger one without overflowing. (image, image processing, matrix)

brushSmallerImageOverAnother.m

computeRegionalStatisticsOf_ROI.m

section_reportStatisticsOfROI.m

image thumbnail

updated almost 4 years ago

Embed and overlay plots and images by Michael Chan

The objective is to illustrate the simple examples of embedding and overlaying plots and images. (plot, graph, image)

plotFootPrintWithinImage.m

plotWithImageBackground.m

plotWithinPlot.m

image thumbnail

updated almost 4 years ago

Calculate Time Interval/ Difference by Michael Chan

To compute time interval, taking into account leap days that are subsumed within that interval. (time, bioinformatics, utility)

DateDiff(T1, T2)

adjustUnits2(upperUnit, lowerUnit, base)

daysinmonth(varargin)

image thumbnail

updated almost 4 years ago

Geometrical interpretation of the 1-D DFT by Michael Chan

Demonstrates Professor Grigoryan's illustration of geometrical interpretation of the 1-D DFT. (dft, geometry, visualization)

do_Operation1.m

do_Operation2.m

executeMain.m

image thumbnail

updated 4 years ago

Back projections and tensor transform by Michael Chan

Illustrates back projections and Professor Grigoryan's tensor transform. (tensor, backprojections, splitting signals)

A=correct_image(A)

B=f_pst(A,p,s);

Err=msr_error(o,out,N1,N2)

image thumbnail

updated 4 years ago

Resolution Map by Michael Chan

Illustrates Professor Grigoryan's Resolution Map (2D image). (image processing, transform, map)

B=ft_pst(A,p,s)

[TP,TS]=t1_ps(p,s,N,mps)

[TT2,N_all]=Jset(N)

image thumbnail

updated 4 years ago

Splitting Signals by Michael Chan

Illustrates Professor Grigoryan's split signals (2D image) and tensor representations. (image processing, fast, transform)

A=correct_image(A);

B=ft_pst(A,p,s)

PSNR(A,B)

image thumbnail

updated 4 years ago

Sampling Of 2D Geometrical Object via Line Beams by Michael Chan

Illustrates coordinated sampling of a geometrical shape such as an eclipse is used in this case. (image processing, project, beam)

calculateEllipse(x, y, a, b, angle, steps)

deg2rad( inDegrees )

getPointsBetween2Points (startp,endp,pts)

image thumbnail

updated 4 years ago

Importance of Image Phase Information Demo by Michael Chan

The objective is to illustrate the importance of image phase as the cardinal information source. (image processing, amplitude, phase)

FFT_image( imageInGray )

IFFT_image(imageInGray_fft_amplitudeOnly, imageInGray_fft...

PSNR(A,B)

image thumbnail

updated 4 years ago

Forming ray lines for plots by Michael Chan

The objective is to construct different line beams. (beam, plot, ray)

deg2rad( inDegrees )

rayLinesScheme_fan (numberOfLines, ...

rayLinesScheme_parallel (numberOfLines, ...

image thumbnail

updated 4 years ago

Line Phantoms For Back Projection Detectability Tests by Michael Chan

Drafts lines used as biomedical phantoms for Back Projection Detectability Tests. (biomedical, image processing, detectability)

draftLinesForBackProjectionTest(scratchPad, numberOfLines...

drawline.m

imagePlot( imageData, plotRowSize, plotColSize, ...

image thumbnail

updated 4 years ago

Image Error Measurements by Michael Chan

Measures the differences between 2 images, and measurement of image quality. (image processing, fidelity, quality)

...

E=eme(X,M,L);

PSNR(A,B)

image thumbnail

updated 4 years ago

Image noise generation by Michael Chan

Illustrates different noise type generation of different severity on images (noise, generation, gaussian)

...

imagePlot( imageData, plotRowSize, plotColSize, ...

imageQualityIndex (img1, img2, block_size)

image thumbnail

updated 4 years ago

Motif Finding by Michael Chan

Illustrates Combinatorial and Viterbi-akin motif finding. (bioinformatics, probabilistic, combinatorics)

PWM( alignmentSetMatrix )

computeNewPWM_GivenSeqBasedOnPWM (alignmentSetMatrix, mot...

computeProbabilityOfSubsequence(sequenceToBeChecked, prob...

image thumbnail

updated 4 years ago

Compute Position Weight Matrix (PWM) and display SequenceLogo in terms of frequency by Michael Chan

Illustrates computation of best match scoring with PWM and constructs sequence logo. (bioinformatics, position weight matri..., match)

PWM( alignmentSetMatrix )

change1colorOnRGBToAnother(rgbImage, FromColor, ToColor)

computeProbabilityOfSubsequence(sequenceToBeChecked, prob...

image thumbnail

updated 4 years ago

Sending reports and timestamped file by emailing by Michael Chan

Illustrates result updates, activity tracking, timestamping and file zipping, tarr'ing via email. (report, test, zip)

send_mail (senderMail, password, ...

timeStampedFile( file, numberOfFileExtensions, secondsMod...

usageTar_unTarFiles.m

image thumbnail

updated 4 years ago

Track, Collect And Tar Inputs And Outputs by Michael Chan

Illustrates status tracking and collation of inputs and results. The package is tar'red for sending. (track, time, tar)

savefigs(imageResultRepository, imageFileType)

timeStampedFile( file, numberOfFileExtensions, secondsMod...

usageTar_unTarFiles.m

image thumbnail

updated 4 years ago

Send Timed Alerts Over Email by Michael Chan

Illustrates the use and enhanced version of standalone alert with email notifications. (time, email, alert)

alarm(t, msg, varargin)

deleteAlarm(obj, edata)

displayAlarm(obj, edata, msg)

image thumbnail

updated 4 years ago

Change 1 color to another of an image by Michael Chan

Illustrates the remapping of 1 color to another of an image. (image, image processing, rgb)

change1colorOnRGBToAnother(rgbImage, toleranceOfColorDete...

plotFigureAsSubplot(image, titleString, numberOfPlotsPerR...

usage_change1colorOnRGB_ToAnother.m

image thumbnail

updated 4 years ago

Burrows-Wheeler Matrix (BWM) Transform by Michael Chan

Illustrates the Burrows-Wheeler Matrix (BWM) Transform. (bioinformatics, string, sort)

BWT (shortGeneStr)

cell2str(c,n,mode)

cell2string( cellString )

image thumbnail

updated 4 years ago

Mouse Activity Tracking by Michael Chan

Illustrates mouse activity tracking. (mouse, tracking, event)

gtrack(newVarName,titleFmt)

image thumbnail

updated 4 years ago

OverLaying Color Images by Michael Chan

Illustrates overlaying of 2 RGB images. Multiple images may be overlay 1 over the other as well. (overlay, rgb, color)

makeColorVersionOnBordersOfBW_Image(grayImage, thresholde...

overlay2colorImages(rgbImage, rgbImage2)

usage_overlayColoredBorders_Images.m

image thumbnail

updated 4 years ago

Shuffle And Unshuffle Images by Michael Chan

Illustrate simple book keeping of image shuffling and unshuffling. (image, shuffle, bookkeeping)

presentShuffledImages (jigsawHolderShuffled, sqrtOfNumber...

shuffleImages(resizedImage, newRowSizePerPiece, newColSiz...

unshuffleImages(jigsawHolderShuffled, jigsawHolderRecover...

image thumbnail

updated 4 years ago

File Ordering Patch Utility for MATLAB by Michael Chan

The utility patches the reordering considering the length of the filename during the sorting. (string, utility, directory)

cell2str(c,n,mode)

displayImagesInDirectory(targetFolder, imageFiles, imageF...

listFilesInDirectory( targetFolder, imageFileType )

image thumbnail

updated 4 years ago

Benchmarking of 1 image verses repository of images by Michael Chan

The utility demo illustrates an example of a benchmarking site when building a test-suite framework. (benchmark string file...)

PSNR(A,B)

cell2str(c,n,mode)

cell2string( cellString )

Contact us