SWARUP S A
Home
Blog
Stats
Mode
Blog
Notes on maths, medical imaging and compression. Click a post to read it.
09
SEPT
2026
The derivative from scratch, and how it powers the backward pass
One formula, f(x + h) minus f(x), divided by h, explained with examples and turned into Python you can use to check a neural network's backward pass.
Maths
Python
Deep Learning
READ ↗
25
DEC
2025
Straightening a curved vessel: curved planar reformation from a segmentation
How to turn a vessel segmentation into a straightened view: extract the centerline, build a plane at every point, and resample the scan into a flat stack. With working Python and a test you can run.
Medical Imaging
Python
Computer Vision
READ ↗
12
JUL
2022
A fast Huffman compressor in C, from a linked list to a canonical code
What I learned building a Huffman compressor in C, and the faster design I would use now: a heap, canonical codes, a binary header and a bit writer.
C
Algorithms
Compression
READ ↗
RECOMPILING REALITY