How to make the edges of the examples

Discuss digital image processing techniques and algorithms. We encourage its application to ImageMagick but you can discuss any software solutions here.
Post Reply
Photo505
Posts: 5
Joined: 2016-06-29T01:25:26-07:00
Authentication code: 1151

How to make the edges of the examples

Post by Photo505 »

Hello! Any idea how to implement this effect?

Image
Image

Defined edges, but very smoothed. First defined edges, and then added some effect used? Or multiple effects in series.

.......

And in this example, the transformation of the edges. Smoothing.

I did this myself:
Image

And it is not known how it is done:
Image

It may have thought, as it is implemented?

I know that this is done only through imagemagick.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: How to make the edges of the examples

Post by snibgo »

If you showed the original, then we could compare before and after processing, so analysis would be easier. But you show your "I did this myself" and another version. Without knowing the original, we can only guess what the other version has done.

We can say there are multiple effects. Massive edge enhancement, and/or line detection, removal of high-frequency detail, and some kind of colour simplification.
snibgo's IM pages: im.snibgo.com
Photo505
Posts: 5
Joined: 2016-06-29T01:25:26-07:00
Authentication code: 1151

Re: How to make the edges of the examples

Post by Photo505 »

Here is the original:
Image


The edges are detected, but they are somehow very stylized and very clean.
I see that added extra edge that are not on the original.
Photo505
Posts: 5
Joined: 2016-06-29T01:25:26-07:00
Authentication code: 1151

Re: How to make the edges of the examples

Post by Photo505 »

snibgo wrote:and/or line detection
Are there examples line detection? Where can I see or read?
To these lines were smooth and ended smoothly.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to make the edges of the examples

Post by fmw42 »

There is no detail in the original image that would allow one to extract those squiggly lines on the floor. Seems like those must have been drawn in manually.

There are many ways to do edge detection. See
http://www.imagemagick.org/Usage/convolve/#edgedet
http://www.imagemagick.org/Usage/convolve/#directional
http://www.imagemagick.org/Usage/morphology/#difference

If on Unix (Linux, MacOS or Windows with Cygwin) see my scripts the link in the Edge category.

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images,

See viewtopic.php?f=1&t=9620
Photo505
Posts: 5
Joined: 2016-06-29T01:25:26-07:00
Authentication code: 1151

Re: How to make the edges of the examples

Post by Photo505 »

Those lines on the floor, yes. It may be imposed texture lines after the main image processing.

But the other line? They are made from real edges? As they are made so clean and smooth? How this can be done in automatic mode? Because this is done automatically. And I'm sure that this is done imagemagick and not use any neural network.

Image

There are some ideas of how to make a line so smoothly and cleanly?


Or is it an example .. as they smoothed the edges?
Image
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to make the edges of the examples

Post by fmw42 »

We would need to see the input image for your last grayscale example. Also where did you get the result of the room image that you want to match in Imagemagick.

You did not answer my questions about your platform and Imagemagick version?
Photo505
Posts: 5
Joined: 2016-06-29T01:25:26-07:00
Authentication code: 1151

Re: How to make the edges of the examples

Post by Photo505 »

fmw42 wrote:We would need to see the input image for your last grayscale example. Also where did you get the result of the room image that you want to match in Imagemagick.

You did not answer my questions about your platform and Imagemagick version?
I have a Linux platform. ImageMagick7. We have a website with photo505.com effects just on imagemagick
I saw the effects on third-party sites and would like to repeat them. Primarily with the edges. Because I'm sure there are also used Imagemagick, although they mimic neural art. But in fact, do not use neural art.

Black and white photographs also with one of the services, and I am not sure on how it is implemented.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to make the edges of the examples

Post by fmw42 »

Without knowledge of the method they use and/or input images, it is very hard to reverse engineer effects. What are the other web sites from which you got these examples. Is one of them pho.to? Your room example looks kind of like what they produce. I do not know what they do. What makes you think the other web sites are using Imagemagick?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: How to make the edges of the examples

Post by fmw42 »

This is a little like the grayscale images.

Input:
Image

Code: Select all

disperse -s 1 -d 1 -c 5 two_girls.png miff:- |\
convert - -blur 0x1 miff:- | toon - miff:- |\
convert - two_girls.png -colorspace gray \
-define compose:args=25,75 -compose blend -composite two_girls_disperse_s1_d1_c5_blur0x1_toon_gray_blend25x75.jpg
Image
Post Reply