New answers tagged image
2
votes
Image Processing Application in C
You have some great reviews of the C code, so I'll look at the compilation script:
#!/bin/bash
gcc improc.c main.c -O3 -g -Wall -Wpedantic -lm -Wextra -o main
...
4
votes
Image Processing Application in C
I second Cris Luengo's recommendations especially regarding API design. Additionally:
Back in the day I wrote C, it was frowned upon to make a function that allocates space and does something, without ...
4
votes
Image Processing Application in C
Everyone has pretty good answers here already.
But I'd like to add -
There's no concept of a negatively sized image, so consider use unsigned integer sizes, or ...
10
votes
Accepted
Image Processing Application in C
Let's talk about the API. I've worked with multiple imaging libraries over the past ~25 years, and have significant experience designing them too.
API:
Let's start with the image container, the core ...
5
votes
Image Processing Application in C
The other contributors made an excellent review of your code. I just want to comment on the philosophy or rationale behind this library choices.
Let's talk about the aim of computing a Sobel's filter: ...
11
votes
Image Processing Application in C
Size to the object, not type
Rather than sizeof(Pixel), use sizeof image->pixels[0]. It is easier to code right, review and ...
12
votes
1
vote
Accepted
Filter: BMP Image Filtering Tool - follow-up
Should the functions doing the input/output be moved to bmp.c?
I recommend a different approach.
Think of all these image processing code as a set of routines in a library, maybe called ...
Top 50 recent answers are included
Related Tags
image × 719performance × 177
python × 168
c# × 94
javascript × 94
c++ × 78
java × 61
beginner × 58
python-3.x × 58
php × 58
c × 55
algorithm × 48
jquery × 41
opencv × 34
numpy × 33
html × 22
file × 20
android × 19
object-oriented × 17
css × 17
animation × 17
graphics × 17
array × 16
.net × 16
matrix × 16