Page 1 of 1

Histogram with c# Magick.Net

Posted: 2019-10-10T08:31:07-07:00
by Dan_Bearderian
Hello everyone!
I'm a c# developer and I'm trying to create a windows Image Editor app. So analyze bitmap image in input and show a flexible histogram to modify that, then save as a new .jpg file.
My main doubt is this:
how do I create an histogram to modify the image in real time?

Thanks in advance :D

Re: Histogram with c# Magick.Net

Posted: 2019-10-10T09:07:53-07:00
by snibgo
Dan_Bearderian wrote:... and show a flexible histogram to modify that, ...
I don't know what that means. I've never seen an editor that allows interactive editing of a histogram. The usual arrangement (eg Gimp Color Curves) shows a histogram. The user can interactively edit curves, and Gimp will update the histogram accordingly.

Re: Histogram with c# Magick.Net

Posted: 2019-10-10T10:21:05-07:00
by fmw42
snibgo -- perhaps he means like in Photoshop or GIMP where you can move sliders for clipping and stretching as per -level and +level

Re: Histogram with c# Magick.Net

Posted: 2019-10-18T08:00:41-07:00
by Dan_Bearderian
fmw42 wrote: 2019-10-10T10:21:05-07:00 snibgo -- perhaps he means like in Photoshop or GIMP where you can move sliders for clipping and stretching as per -level and +level
Exactly.
Does anyone know how to implement such a solution?
I had already looked at the scripts but the only problem is that they need Unix to work, right? (I'm working on a Windows-based application, with c#)

Re: Histogram with c# Magick.Net

Posted: 2019-10-18T08:36:48-07:00
by snibgo
I'm still not sure what you are asking.

A program can be written in whatever language you want that reads sliders and applies effects to images, with updates to a screen copy of the image in real time. I have done that, with C and ImageMagick (unpublished). Gimp is open source, so you can see how it is done.