mszlazak
-
Posts
26 -
Joined
-
Last visited
Posts posted by mszlazak
-
-
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.
-
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.
-
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.
// 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.
-
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.
-
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.
-
On 4/16/2021 at 10:22 AM, BoltBait said:
C
-
-
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.
-
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)
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.
-
This tutorial may help: http://www.isimonbro...ing-out-images/
combine it with alpha masking and you should get yourself a clean cut out, except the hair, which is always a problem.
Thanks to everyone.
This link and the other comments helped a lot.
I like the method of using the pencil or brush on a transparent over layer.
-
I've used a "threshold" tool that comes with one of the plug-ins to blacken out backgrounds that I wanted removed from a photo.
The problem is that this doesn't work well or easily in general and I would appreciate help with techniques to deal with photos like the one attached.
In this photo, I want only the family/people without the back ground of the house (etc).
Thank you.
-
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.
-
The following png file causes IE8 to render the blurred image with a black back-ground in the portions of the blur between the original shape which sharply ends at the transparent areas outside the blur region.
This image shows up correctly with the black background sections transparent in Firefox 3.6.
How can I fix this?
-
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?
-
-
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.
-
Your technique works very well. I've attached the image.
However, the color is way off in Firefox 3.6.8 but renders perfect in IE8.
Why would that be?
-
By the way, what plug in are you using. I don't have effects like "Threshold" and the plug in by that name does appear the same on the plug in download page.
Thank you
-
Here are some steps that you can use.
http://a.imageshack....7739/back01.png
http://a.imageshack....9315/back02.png
http://a.imageshack....6274/back03.png
http://a.imageshack....3528/back04.png
http://a.imageshack....6191/back05.png
http://a.imageshack....7558/back06.png
http://a.imageshack....6697/back07.png
http://a.imageshack....1839/back08.png
http://a.imageshack....2778/back09.png
http://a.imageshack....7274/back10.png
http://a.imageshack....2026/back11.png
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>
-
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.
-
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.
-
-
Thank you welshblue & sarkut.
-
How do I remove/replace/filter almost all colors except one
in Paint.NET Discussion and Questions
Posted · Edited by mszlazak
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.