Jump to content

mszlazak

Members
  • Posts

    26
  • Joined

  • Last visited

Posts posted by mszlazak

  1. 13 hours ago, Ego Eram Reputo said:

    Here is a tutorial for a technique and also a plugin. Honestly, results are probably going to disappoint.

     

    It might be faster and more accurate to trace over the lines you want using the rounded rectangle shape. Do the tracing in a contrasting color on a new layer. If you use a brush width of three and a corner size of four you'll get quite close.

     

     

     

    Thanks! Yeah I was using CAD software to measure and trace lines. What I ended up settling on was using the blackened lines and looking where the straight edge starts to deviate at a corner and then measure the distance to the other perpendicular lines corresponding edge at that corner (note: the image below does it for the middle of the darkened line). The "eyeballing" of corner round tangent points to a straight line is one problem but I thought there maybe a better way which is a less subjective and more repeatable proceedure. A larger photo of each device would help a lot but that isn't available.

    Screenshot (1829).png

  2. This is a image of an integrated circuit die. Notice that there are (almost) black lines bordering differently doped regions of semiconductor devices (transistors, diodes and resistors) with silver colored metal contacts and interconnects. What i would like to do is extract only these "black lines" and just "white out" everything else. If you look close at the corners of these lines you see they are rounded. Secondly, I would like to measure the radius of these rounded corners and if anyone knows an easy way to do this in software please let me know. Corner radius size is what I ultimately want because it varies with diffusion depth of dopants in the various n-type and p-type aspects of the silicon.

     

    1625635138_LM360_full25percentscale.thumb.jpg.ab8365e730566484e960d4fccb4b177e.jpg

  3. 10 hours ago, Reptillian said:

    That's not possible with PDN. Also skewing with a large angle means that the enlarged picture would very big easily. If using 80 degree, the enlarged picture would add 5k to both side for 1k picture.

    To bad about the PDN. I would imagine that even a limited enlargement would still help in a lot of cases. Anyway, thanks for your update and look forward to using the upgrade.

  4. 3 hours ago, Reptillian said:

     

    I'm actually working on porting my gmic skew filter into skew plugin using @BoltBait original code as a starting point. That filter has angle input.

     

    EDIT: I got something here though I don't know how to work with this too well. Maybe the author will improve this code.

      Reveal hidden contents
    
    
    // Name: Skew Horizontal
    // Submenu: Distort
    // Author: BoltBait
    // Title: BoltBait's Skew - Horizontal v1.0
    // Version: 1.0
    // Desc: Skew selection
    // Keywords: skew
    // URL: https://BoltBait.com/pdn
    // Force Aliased Selection
    #region UICode
    DoubleSliderControl degree = 0; // [-89.99,89.99] Angle
    DoubleSliderControl d_position = 50; // [0,100] Position(%)
    CheckboxControl selection_clamp = true; // Clamp to Selection
    CheckboxControl nearest_mode = false; // Nearest Neighbor
    CheckboxControl wraparound_mode = false; // Wrapped
    #endregion
    
    Surface selectionSurface = null;
    
    void PreRender(Surface dst, Surface src)
    {
        // Thanks to toe_head2001 for this PreRender code
        // which is useful for clamping to selection
        Rectangle selection = this.EnvironmentParameters.SelectionBounds;
        if (selectionSurface == null || selectionSurface.Size != selection.Size)
        {
            selectionSurface?.Dispose(); selectionSurface = null;
            selectionSurface = new Surface(selection.Size);
        }
        selectionSurface.CopySurface(src, Point.Empty, selection);
    }
    
    void Render(Surface dst, Surface src, Rectangle rect)
    {
        double ang = ( degree / 180 ) * Math.PI;
        float position = (float)(d_position / 100);
    
        Rectangle selection = EnvironmentParameters.SelectionBounds;
    
        int sel_diff = selection.Bottom - selection.Top ;
        float sel_py = selection.Top * (1 - position) + selection.Bottom * position;
        double sel_dist = (double)(sel_diff) * Math.Tan(ang);
    
        int rect_diff = rect.Bottom - rect.Top;
        float rect_py = rect.Top * (1 - position) + rect.Bottom * position ;
        double rect_dist = (double)(rect_diff) * Math.Tan(ang);
    
        for (int y = rect.Top; y < rect.Bottom; y++)
        {
            if (IsCancelRequested) return;
    
            float sel_pos = (y - sel_py) / (float) (sel_diff);
            float sel_off = sel_pos * (float)(sel_dist) ;
            float rect_pos = (y - rect_py) / (float) (rect_diff);
            float rect_off = rect_pos * (float)(rect_dist) ;
    
            for (int x = rect.Left; x < rect.Right; x++)
            {
                if (wraparound_mode)
                {
                    if (nearest_mode)
                    {
                        if (selection_clamp)
                        {
                            dst[x,y] = selectionSurface.GetBilinearSampleWrapped((int)(x+sel_off-selection.Left), y-selection.Top);
                        }
                        else
                        {
                            dst[x,y] = src.GetBilinearSampleWrapped((int)(x+rect_off), y);
                        }
                    }
                    else
                    {
                        if (selection_clamp)
                        {
                            dst[x,y] = selectionSurface.GetBilinearSampleWrapped(x+sel_off-selection.Left, y-selection.Top);
                        }
                        else
                        {
                            dst[x,y] = src.GetBilinearSampleWrapped(x+rect_off, y);
                        }
                    }
                }
                else
                {
                    if (nearest_mode)
                    {
                        if (selection_clamp)
                        {
                            dst[x,y] = selectionSurface.GetBilinearSampleClamped((int)(x+sel_off-selection.Left), y-selection.Top);
                        }
                        else
                        {
                            dst[x,y] = src.GetBilinearSampleClamped((int)(x+rect_off), y);
                        }
                    }
                    else
                    {
                        if (selection_clamp)
                        {
                            dst[x,y] = selectionSurface.GetBilinearSampleClamped(x+sel_off-selection.Left, y-selection.Top);
                        }
                        else
                        {
                            dst[x,y] = src.GetBilinearSampleClamped(x+rect_off, y);
                        }
                    }
                }
            }
        }
    }

     

     

    Great! Also notice that when i skewed my original picture, the plugin did not enlarge the size of the resulting image automatically but instead cropped off parts of the curves on the right. Maybe an automatic enlargement option would be handy. Thanks.

  5. On 4/16/2021 at 10:22 AM, BoltBait said:

     

    Could you show me what you're trying to accomplish?  (Even a rough sketch would be fine.)

     

    Addendum to my last post. I forgot to mention a request that would be helpful to control skewing. Would you consider a skew angle input since your slider scale doesn't seem to be in degree/radian units and allows decimals for finer control of angles? One could skew these curve traces to a better precision needed to extract data points from the curve with extraction software (e.g. webplotdigitizer) that is orthogonal axis based. There are probably other use cases besides this but that is currently mine. Thanks.

  6. On 4/16/2021 at 10:22 AM, BoltBait said:

     

    Could you show me what you're trying to accomplish?  (Even a rough sketch would be fine.)

    I had to uncheck your "Fine control" to get the extent of horizontal skewing i needed. Here are the before and after pictures. For example, the red dots should be vertical and all at the 2e-17 V/NBC value afterwards.

     

    Screenshot (1818)-2.png

    Screenshot (1818)-3.png

  7. How do i darken and maybe thicken all lines in a line drawing?

    I need to darken the grey lines in a two color (grey & green) line drawing since they are hard to see.

    One way is a fill but there maybe some quick method that proportionately darkens just the grey pixels while preserving the relative grey gradient between grey pixels.

    Thanks.

  8. It would be great to have a tool that removes backgrounds but as far as I know that does not exist. Using an eraser tool to make a halo then zooming in on your photo (400%+) to erase or paint pixels helps. Moving back and forth between 100% and 400%+ and making small adjustments helps.

    Photographers often use a blue or green screen (or just plain background) to make it easier for removing backgrounds. The magic wand tool helps if you have stark contrast but in a photo like your example, I think you'll have some work to do.

    Here is an example of using: zoom in/out, eraser (adjusting size), colour picker, paint brush (adjusting size)

    examplebackgroundremova.png

    Uploaded with ImageShack.us

    Zipit, is there a way to smooth/curve out the husbands left elbow? The picture was cropped there leaving a straight line at that location.

  9. Don't use IE. There's something funky with the way IE shows images.

    It's for the web so no choice.

    But I found a work around.

    I saved the .JPG image as a .BMP file then opened it in regular Paint that comes with Windows.

    From there I saved it as a .JPG and it now works fine with FF & IE.

    Originally the problem occurred when saving the image as .JPG or .PNG from Paint.Net

    One file format worked in one browser but not the other.

    The reverse happen when I changed to the other file format.

  10. Try duplicating the layer of the foreground object and blurring the lower layer slightly.

    This will allow some of her coloration to bleed and blend into the background glow.

    Also, using Feather Object on the foreground object instead of AA's Assistant can give a softer edge.

    Thank you and I will give that a try.

    Also, did you see my problem I'm getting in this thread?

  11. I have the background image and foreground image attached.

    The female is in the foreground image who's left/right edges don't match the coloring of my background image.

    This causes a line to show when one is on top of the other.

    I tried using the gradient tool but can't quite get the left/right edges to smoothly blend with the images below.

    What do I do?

    Thank you.

    post-75464-128228256554_thumb.jpg

    post-75464-128228257486_thumb.jpg

  12. Sarkut that is very nice and I appreciate the effort. Thank you.

    I figured out a rougher approach yesterday that did not work as well.

    Also, I'm not sure these images are done with silhouette blurs.

    It maybe just some circular or ellipse white object that gets blurred and sits in a layer between the image and background.

    I've attached some more in a set I have and lastly the one I did which I will redo by your method.

    What do you think they are doing?

    Thanks again.

    <one image removed by EER>

    post-75464-128224591468_thumb.jpg

    post-75464-128224593489_thumb.jpg

    post-75464-128224598958_thumb.jpg

    post-75464-128224602445_thumb.jpg

  13. There are three images attached.

    1. Two people standing back to back with business information.

    2. A background image for 1.

    3. An image of a person holding their neck & back with a black back ground

    I would like to make another banner just like 1 but with the image found in 3.

    This new banner should have the same back ground as 1 and the same halo/glow effect as in 1 but around the single person in 3.

    Thank you for the help.

    post-75464-128216584115_thumb.jpg

    post-75464-128216584989_thumb.jpg

    post-75464-128216604352_thumb.jpg

  14. Is there a way to get 3d effects as in the following YouTube video:

    The images used can be found on Google Images but they are being "twisted" and distorted in 3d.

    Does Paint.net have this capability or do I need another tool ... preferably free.

    Also, there is a 2D effect where an image is blurred and then moved around.

    Again, is this something for paint.net or better left for another tool?

    If Paint.net is adequate then I was going to import the images/animations into windows movie maker.

    Thank you.

×
×
  • Create New...