Histogram with c# Magick.Net

Magick.NET is an object-oriented C# interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning Magick.NET
Post Reply
Dan_Bearderian
Posts: 2
Joined: 2019-10-10T08:14:08-07:00
Authentication code: 1152

Histogram with c# Magick.Net

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Histogram with c# Magick.Net

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Histogram with c# Magick.Net

Post 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
Dan_Bearderian
Posts: 2
Joined: 2019-10-10T08:14:08-07:00
Authentication code: 1152

Re: Histogram with c# Magick.Net

Post 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#)
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Histogram with c# Magick.Net

Post 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.
snibgo's IM pages: im.snibgo.com
Post Reply