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: 3
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: 12863
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: 26250
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: 3
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: 12863
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

Dan_Bearderian
Posts: 3
Joined: 2019-10-10T08:14:08-07:00
Authentication code: 1152

Re: Histogram with c# Magick.Net

Post by Dan_Bearderian »

snibgo wrote:
2019-10-18T08:36:48-07:00
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.

Sorry for the ignorance, but I wondered if the published scripts could be used on a wpf interface in c#, I read that to use them on windows you have to use Cygwin. The doubt is how to implement these scripts in my application with Cygwin. :(

User avatar
fmw42
Posts: 26250
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Histogram with c# Magick.Net

Post by fmw42 »

What published script do you refer? I have many unix-based Imagemagick shell script that will run under Cygwin. See my link below. But they are not Magick.Net scripts. However, dlemstra has converted a few to Magick.NET. See https://github.com/dlemstra/FredsImageMagickScripts.NET

Post Reply