How fingsinz/fphoto works
Project type and purpose
• FPHOTO is a native desktop image-processing application written in C++ using Qt for its GUI.
File structure
• Top-level solution: FPHOTO.sln (Visual Studio project)
• Main source directory: FPHOTO/
• FPHOTO.ui, FPHOTO.qrc → Qt Designer UI form and resources
• main.cpp → application entry point, QApplication setup
• FPHOTO.cpp/h → main window class (UI + signal/slot wiring)
• ImgInstance.cpp/h → image data model (pixel buffer, metadata)
• ImgProcess.cpp/h → core image‐processing algorithms
• PhotoShow.cpp/h → widget responsible for rendering images on screen
• Utils.cpp/h → helper functions (file I/O wrappers, conversions)
README for additional insights
• Confirms use of Qt 5.15.2 and MSVC2019 toolchain under VS2022
• No external services—purely local, event-driven GUI + algorithmic engine
Detailed breakdown of components
• User: desktop end-user
• UI Layer
• MainWindow («QWidget»)
• PhotoShow («QWidget»)
• Controller/Core Logic
• ImgProcess («C++ Class»)
– Geometry (zoom, rotate, flip, crop)
– Histogram (stats, equalization)
– Spatial Filters (smooth, sharpen)
– Morphology (dilate, erode, open, close)
– Segmentation (manual, auto, OTSU, region growing)
– Drawing (lines, rectangles, circles, text)
• Data Model
• ImgInstance («Pixel Buffer + Metadata»)
• Utilities
• Utils («File I/O, Format Conversions»)
• Persistence
• File System (JPEG, PNG, BMP readers/writers)