← Back

ofxRadonTransform

github.com/bemoregt/ofxRadonTransform · @bemoregt
OF 0.12 Algorithms Computer Vision

Radon Transform (Sinogram) implementation for Openframeworks

1 0 Last commit 1y ago Created 1y ago

README

ofxRadonTransform



Radon Transform (Sinogram) addon for OpenFrameworks.

Sinogram Example 1

Sinogram Example 2

Sinogram Example 3

Sinogram Example 4

Overview



ofxRadonTransform is an OpenFrameworks addon that implements the Radon Transform for image processing. The Radon transform is a fundamental tool in tomographic reconstruction and has applications in computer vision, pattern recognition, and image analysis.

What is Radon Transform?



The Radon Transform represents an image as a collection of projections along different angles. The result is often visualized as a sinogram - a 2D image where: This transformation provides a different representation of the image that highlights certain features and can be particularly useful for:

Features



Dependencies



Installation



1. Download or clone this repository into the addons folder of your OpenFrameworks installation:
   cd openFrameworks/addons
   git clone https://github.com/bemoregt/ofxRadonTransform.git
   


2. Open the example project in Project Generator, update it, and open in your IDE.

3. Alternatively, add ofxRadonTransform to your existing project using the Project Generator.

Usage



Basic usage example:

#include "ofxRadonTransform.h"

ofxRadonTransform radonTransform;
ofImage inputImage, outputImage;

// In setup()
inputImage.load("test.png");

// Compute Radon transform with 360 angle steps
radonTransform.compute(inputImage, outputImage, 360);

// In draw()
inputImage.draw(0, 0);
outputImage.draw(inputImage.getWidth(), 0);

// Get computation time
float time = radonTransform.getElapsedTime();


Algorithm



Applications



Future Plans



Reference



License



MIT License

Author



bemoregt

Get this addon

HTTPS
SSH