PS CC 2014 how to get better results from refine edge
In the attached image below you will see "Jesus on the cross" which I want to substitute a new background. On the left is a portion of the unselected image and on the right is the best result I can get via refine edge tool. I have tried all the usual methods such as channels, increasing contrats etc but this is the best I can get. The top thorns had the same problem but what you see now is an hour of manual selection. How do I get a better result - why is it that when the rfine edge brush is swept over such it often only produces transparent results?
I am keep working on this problem today.
I tried Particle Analysis, the result is un-repeatable either. But when I decide to find Straight edge direct from source image,without any process,the angle is more repeatable,Max deviation is 0.03-0.06 degree.It seems my process to the image make thing worse.Then I found the algorithm to find straight is something like linear fit : find all the edge points,linear fit and calculate the angle.
So I run my program for images those pixel resolution is 1280*960,the Max deviation is much lower: 0.008 degree.
If I am right,the best resolution to my problem is to change my camera to higher resolution.
Any advises is appreciate! Thank you!
Similar Messages
-
How to get save result from EXECUTE from a dynamic SQL query in another table?
Hi everyone,
I have this query:
declare @query varchar(max) = ''
declare @par varchar(10)
SELECT @par = col1 FROM Set
declare @region varchar(50)
SELECT @region = Region FROM Customer
declare @key int
SELECT @key = CustomerKey FROM Customer
SET @query = 'SELECT CustomerKey FROM Customer where ' + @par + ' = '+ @key+ ' '
EXECUTE (@query)
With this query I want get col1 from SET and compare it to the column Region from Customer. I would like to get the matching CustomerKey for it.
After execution it says commands are executed successfully. But I want to save the result from @query in another table. I looked it up and most people say to use sp_executesql. I tried a few constructions as sampled and I would always get this error:
Msg 214, Level 16, State 2, Procedure sp_executesql, Line 12
Procedure expects parameter '@statement' of type 'ntext/nchar/nvarchar'.
So the output should be a list of CustomerKeys in another table.
How can I save the results from EXECUTE into a variable? Then I assume I can INSERT INTO - SELECT in another table.
ThanksCREATE TABLE Customer
(CustomerKey INT , Name NVARCHAR(100));
GO
INSERT dbo.Customer
VALUES ( 1, N'Sam' )
GO
DECLARE @query nvarchar(max) = ''
declare @par varchar(10) = 'Name',
@key varchar(10) = 'Sam'
CREATE TABLE #temp ( CustomerKey INT );
SET @query =
insert #temp
SELECT CustomerKey
FROM Customer
where ' + @par + ' = '''+ @key+ ''' '
PRINT @query
EXEC sp_executesql @query
SELECT *
FROM #temp
DROP TABLE #temp;
DROP TABLE dbo.Customer
Cheers,
Saeid Hasani
Database Consultant
Please feel free to contact me at [email protected] as well as on Twitter and Facebook.
[My Writings on TechNet Wiki] [T-SQL Blog] [Curah!]
[Twitter] [Facebook] [Email] -
How to get accurate results from sql code ?
Hello everybody,
I have a problem with some portion of my code.
I get more results than I specify in the where clause.
Here is the sample code:
c.gl_acct_id between '110'||'-'||'6890'||'-'||'69000'||'-'||'%'
and '110'||'-'||'7000'||'-'||'67999'||'-'||'%'
For some reason I also get the following results back:
110-6910-51001-001, and 110-6910-51003-001 But I don't need the 51001 and 51003. How do I specify in sql what range I really want. I was sure that the code above is correct. I guess not.
I would appreciate any help,
Thanks,
SonyaHave you tried using the query either of the following...
1) c.gl_acct_id between '110-6890-69000-000'
and '110-7000-67999-999'
and c.gl_acct_id not like '110-6910-51001-%'
and c.gl_acct_id not like '110-6910-51003-%'
assuming you have only 3 digits at the end of gl_acct.
2)If you know that your acct_id belongs to only 69000 or 67999
then
(c.gl_acct_id LIKE '110-6890-69000-%' OR
c.gl_acct_id LIKE '110-7000-67999-%' )
Plz. let me know if this not what you are looking for.
thanx
rajkiran
Here is the whole script:
select distinct c.gl_acct_id acct_no,
c.gl_acct_desc,
min(a.local_act_beg_bal) local_act_beg_bal,
sum(b.local_act_mtd_dr_amt) debits,
sum(b.local_act_mtd_cr_amt) credits,
nvl(min(a.local_act_beg_bal),0)+sum(nvl(b.local_act_mtd_dr_amt,0))-
sum(nvl(b.local_act_mtd_cr_amt,0)) end_bal
from gl_acct c, gl_acct_bal a, gl_acct_bal b
where c.org_unit_id = '110'
and b.gl_acct_id = c.gl_acct_id
and a.gl_acct_id = c.gl_acct_id
and c.sum_det_ind = 'D'
and c.gl_acct_class_ind in ( 'A' , 'L' , 'Q' , 'I' , 'E' )
and a.year_no = '2001'--:loyear
and a.period_no = '1'--:loperiod
and ( ( b.year_no = '2001'--:hiyear
and b.period_no between '1'--:loperiod
and'13')-- :hiperiod
and c.gl_acct_id between '110'||'-'||'6890'||'-'||'69000'||'-'||'%'
and '110'||'-'||'7000'||'-'||'67999'||'-'||'%'
group by c.gl_acct_id, c.gl_acct_desc
I want to have ability to specify ranges for gl_accoount.
Thanks,
Sonya -
Q. How to get multiple results from a single column in a recordset using PHP
Hi everyone
Hope someone can help. I have a column called categories and about 5 categories listed. I want to show all products that are listed in say 2 categories. I only have basic php skills so only know how to pass a url value to show the products from 1 category e.g.
Select *
FROM product
WHERE category = colname
$colname = $_GET['category'];
URL...page.php?category=fruit
Questions is how do I get the products from multiple categories to show e.g. all products from categories 'fruit', 'dairy', 'meat'
Your help will be much appreciated as I am getting tired of beating my head against the wall. (should invent a PHP wall pillow and sell it online)
Thanks$colname1 = $_GET['category1'];
$colname2 = $_GET['category2'];
$colname3 = $_GET['category3'];
Select *
FROM product
WHERE category IN ('$colname1', '$colname2', '$colname3')
>Your help will be much appreciated as I am getting tired of beating my head against the wall
My guess is that you are trying to build a web application without having first learned the basics on PHP and SQL. That's certainly the hard way. -
Getting poor results with Refine Edge tool
Not sure if anyone else has run into this issue. But after following numerous tutorials on lynda.com as well as tv.adobe.com and youtube, I just can't get good selection results using the Refine Edge tool in Photoshop CC and I'm convinced it's something I'm doing wrong, but I have no idea what.
After downloading this Wikipedia image of Bismarck for a history documentary, I tried isolating the figure from the background using Refine Edge and keep getting poor results. Maybe it's my settings, I'm just not sure. But after painting over my edges, I end up with terrible results. Unfortunately, I'm getting poor results with other images as well. Can anyone venture to guess what I might be doing wrong? Thanks very much in advance.Hi ninose11,
For this type of project and idea, I would recommend trying some of the magnetic lasso tool. The tool is located as the third tool in the toolbar (you should see a lasso or rope looking icon), hold down the icon and it should expand - then select the magnetic lasso tool. The magnetic lasso tool will allow you to scroll over the edge of his profile and it will automatically detect the outline edges. The slower you roll-over the shape the higher the accuracy will be. If the magnet is not detecting a particular edge or sharp corner (for example, the ear) you can manually drop points by simply right-clicking at any point during the selection. If the edge is too sharp, you can also create a light feather which will blend the edge softly (this should be located at the top).
If this is unsuccessful still, you can try selecting by color, using the Magnetic Wand Tool (forth icon in the toolbar, again hold down for all options). Once you are using the magnetic wand tool, you should be able to select all the black areas of the background to delete. You can increase or decrease the tolerance to change the sensitivity of the selection.
Hope this helps! -
How to get table result from XML
Hi I am new to XML, I was playing with node, but wasn't successfull
I have XML fragment
DECLARE @XML xml =
<E1EDP01 SEGMENT="1">
<E1EDP19 SEGMENT="1">
<QUALF>002</QUALF>
<IDTNR>A1</IDTNR>
<KTEXT>PRF NUDE MAGIQUE BB MEDIUM M-UP TST</KTEXT>
</E1EDP19>
<E1EDP19 SEGMENT="1">
<QUALF>003</QUALF>
<IDTNR>E1</IDTNR>
</E1EDP19>
</E1EDP01>
<E1EDP01 SEGMENT="1">
<E1EDP19 SEGMENT="1">
<QUALF>002</QUALF>
<IDTNR>A2</IDTNR>
<KTEXT>PRF NUDE MAGIQUE BB MEDIUM M-UP TST</KTEXT>
</E1EDP19>
<E1EDP19 SEGMENT="1">
<QUALF>003</QUALF>
<IDTNR>E2</IDTNR>
</E1EDP19>
</E1EDP01>
<E1EDP01 SEGMENT="1">
<E1EDP19 SEGMENT="1">
<QUALF>002</QUALF>
<IDTNR>A3</IDTNR>
<KTEXT>PRF NUDE MAGIQUE BB MEDIUM M-UP TST</KTEXT>
</E1EDP19>
<E1EDP19 SEGMENT="1">
<QUALF>003</QUALF>
<IDTNR>E3</IDTNR>
</E1EDP19>
</E1EDP01>'
and I need to create query, which list all products and his two codes, result should be like this
ProductCode1
ProductCode2
A1
E1
A2
E2
A3
E3
It is visible from XML fragment, how those values are organised in segments......
I tried to use
select PC1.query('./text()')
AS PC1,
PC2.query('./text()')
AS PC2
from @XML.nodes('/E1EDP01/E1EDP19[1]/IDTNR') as PC1(PC1)
CROSS APPLY @XML.nodes('/E1EDP01/E1EDP19[2]/IDTNR') as PC2(PC2)
But it gets all combinations of ProductCode1 and PRoductCode2, somtehing like cross join and result has 9 rows...
Could you help pleaseTry this,
DECLARE @XML xml ='
<E1EDP01 SEGMENT="1">
<E1EDP19 SEGMENT="1">
<QUALF>002</QUALF>
<IDTNR>A1</IDTNR>
<KTEXT>PRF NUDE MAGIQUE BB MEDIUM M-UP TST</KTEXT>
</E1EDP19>
<E1EDP19 SEGMENT="1">
<QUALF>003</QUALF>
<IDTNR>E1</IDTNR>
</E1EDP19>
</E1EDP01>
<E1EDP01 SEGMENT="1">
<E1EDP19 SEGMENT="1">
<QUALF>002</QUALF>
<IDTNR>A2</IDTNR>
<KTEXT>PRF NUDE MAGIQUE BB MEDIUM M-UP TST</KTEXT>
</E1EDP19>
<E1EDP19 SEGMENT="1">
<QUALF>003</QUALF>
<IDTNR>E2</IDTNR>
</E1EDP19>
</E1EDP01>
<E1EDP01 SEGMENT="1">
<E1EDP19 SEGMENT="1">
<QUALF>002</QUALF>
<IDTNR>A3</IDTNR>
<KTEXT>PRF NUDE MAGIQUE BB MEDIUM M-UP TST</KTEXT>
</E1EDP19>
<E1EDP19 SEGMENT="1">
<QUALF>003</QUALF>
<IDTNR>E3</IDTNR>
</E1EDP19>
</E1EDP01>'
SET @XML = '<ROOT>' + CAST(@XML AS NVARCHAR(MAX)) + '</ROOT>'
SET @XML = CAST(@XML AS XML)
;WITH CTE AS (
select t.u.value ('QUALF[1]','varchar(10)') as QUALF,
t.u.value ('IDTNR[1]','varchar(30)') as IDTNR,
t.u.value ('KTEXT[1]','varchar(30)') as KTEXT,
t.u.value ('..','varchar(30)') as DESCR
from @XML.nodes('/ROOT/E1EDP01/E1EDP19') t(u)
SELECT [002] AS ProductCode1,[003] AS ProductCode2 FROM (SELECT QUALF,IDTNR,DESCR FROM CTE) X
PIVOT(MAX(IDTNR) FOR QUALF IN ([002],[003])) PVT
Regards, RSingh -
How to get numeric result from 'search and replace' string function
hii
i am using search and replace function to get output.my output is of form ' *X0123.3 ' .here i am replacing the term *X01 with space because i need only 23.3 as a result.but i am unable to get that out in the output indicator.i used lot of functions like string to number and so on but i am getting output as zero .can you please suggest me wt to do.i am attaching a copy of my file.
Attachments:
Untitled 1.vi 25 KBYour problem is the fact that you are converting it to an integer, thus loosing the fractional part. You need to use "Fract/Exp String To Number" instead and create a DBL so yor data is 23.3 instead of 23.
You also don't need to manipulate the string if the initial part is of constant lenght. Just use the offset input as in the figure below.
Message Edited by altenbach on 07-31-2006 07:02 AM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
ToDBL.png 2 KB -
How to get the result from graph based on table prompt?
I have one report in which I am having one table and three Graphs. I have added table prompt for one column i.e department. In that I have given three values. The values of my table changes as per the table prompt. But my requirement is my graphs should show me the result as per the selection of departments in table prompt. Please give me the solution for the same.
Hi,
Create a event channel the table view and refer the same channel name in the graph properties.
Edit Graph --> Edit properties --> Enable Master-Details Events --> Give the channel name.
It will work for the selection of table .
Mark if helps.
Raja Mohamed -
Af:query - How to get the result rowsets
Hi,
I have a requirement where i need to search the db rows on and append the results the adf rich table on each search.
For this i am using af:query component. And trying to get the result rows for the named criteria.
String mexpr = "#{bindings.DestinDescVOCriteriaQuery.processQuery}";
processMethodExpression(mexpr, queryEvent, QueryEvent.class);
ViewCriteriaManager vcm = getDestinDescViewObj().getViewCriteriaManager();
ViewCriteria vc = vcm.getViewCriteria("DestinDescVOCriteria");
getDestinDescViewObj().applyViewCriteria(vc);
AdfFacesContext adfFacesContext = AdfFacesContext.getCurrentInstance();
adfFacesContext.addPartialTarget(tblDestinDesc);
However on each click of search the rows searched in the previous attempt are not retained.
Can anyone let me know how to get the result from named criteria and append it the table?
Thanks
AjayCan anyone help?
-
How to get the results for given Bind Variable
Hi
Can any one help me how to get the result rows from the View Object after executing the view object query by setting bind variable?
snippet as follows
viewObject.setNamedWherClauseParams("name","hei");
viewObject.executeQuery();
How to get the results from viewObject is my question..?
Thanks in advanceShould be something like
while (vo.hasNext()){
Row r = vo.next();
r.getAttribute....
You might want to read the "most commonly used methods" appendix in the ADF Developer Guide. -
How to get the results in one line
Hi
if i use the script below i get the name of path and then : and in next line i get the results.is there a way to get the results from every path after the : and not in the next line?
another question - is there a way that the script will not show the server name on every path?
(Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter
THCIf you take you script and pipe it to get member, it will give you a list of various script properties.
(Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | get-member
You will see that the object type returned by "Get-Counter" is Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet.
TypeName:
Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
Name MemberType Definition
Equals Method bool Equals(System.Object obj)
GetHashCode Method int GetHashCode()
GetType Method type GetType()
ToString Method string ToString()
CounterSamples Property Microsoft.PowerShell.Commands.GetCounter.Perfo...
Timestamp Property datetime Timestamp {get;set;}
Readings ScriptProperty System.Object Readings {get=$strPaths = ""...
You can try grabbing different properties, and they will print out differently, displaying the data on the same line in some cases. For example, pipe your output to a "foreach-object" block, and then for each object print out the CounterSamples property.
(Get-Counter -ListSet LogicalDisk).PathsWithInstances | Get-Counter | foreach-object { ($_).CounterSamples }
This should all print on one line now. However, you also asked if there was a way to not have the server print out on every line. The way to control the format of these outputs is to use the "format-table" cmdlet. So you would pipe your output to format-table
and then give it various options. This is how you would pipe it (without any options).
(Get-Counter -ListSet LogicalDisk).PathsWithInstances |
Get-Counter | object { ($_).CounterSamples | format-table }#OR USE YOUR ORIGINAL CODE(Get-Counter -ListSet LogicalDisk).PathsWithInstances |
Get-Counter | format-table }
Now, it's up to you to give format-table the options you want. With no options, output will look unchanged. To see what options are available to you, use get-help.
get-help format-table
I hope this helps!
Thank for all the info... -
How to get query result in comma dilimited text or excel file?
Does anybody know how to get query results in comma delimited
text file or excel file, I tried spool abc.txt, but the result
showed some ------ lines
ThanksTry doing this in your sql scripts
set heading off
set pagesize 0
set linesize 4000
set feedback off
set verify off
set trimespace on
set colsep ","
spool output.txt
select * from dual (or whatever you are querying
spool off
There may be a couple other set statement that you could add but
this should get you started in the right direction -
Call function in background task... How to get the result?
I want to use Call function in background task parameter.
But I cannot find the result of this function. (No export parameter, no table result, no exception)
How to get the result of this function module? Correct or not?Hi Heinz,
You can check the result in SM58 transaction.
For more information pls. refer this thread :
No IMPORTING parameters allowed in CALL FUNCTION IN BACKGROUND TASK
Best regards,
Prashant -
How to get better resolution on graphical borders in Pages?
When using the «line effect» on a picture frame and choose a «image border», these borders a very pixelated and low resoltion when i.e. printing on a quality printer. Seems to be only screen resolution (100-150 dpi)? Is this a bug in Pages – how to get better resolution for these borders when exporting for example to PDF?
Here you see the issue. The Document's size is A6 landscape, means 14.8x10.5 cm, and it prints and shows really pixelated
-
Setting my system in order to get better results in burning the SD AND HD
I need help with setting my system in order to get better results in burning the SD AND HD DVDs
here are my system details:
Camera : SONY HVRZ5U
COMPUTER SYSTEM: MAC PRO 10.6.6
SOFTWARE: FINAL CUT PRO 7
Question #2:
My camera has a built in Firewire output, do I need a AJA capture card for my Mac PRO?I have a Z7u, Mac Pro running 10.6.5, FCP 6.0.6
You can capture HDV via Firewire. Make your preset HDV and edit in that timeline. But I would set the RENDER as Pro Res.
I have an AJA IoHD so I capture as Pro Res. Probably a better way to go, but certainly not necessary if you don't have a dedicated capture card.
After editing I take the resultant exported edited,self-contained .mov into compressor to make the mpeg2 and ac3 to take into DVDSP. These are SD DVD's. They come out just fine.
What don't you like about your results?
Maybe you are looking for
-
How do I configure a counter to generate pulses using DAQmx?
How do I configure a counter to generate pulses using DAQmx? Is says in the DAQmx C reference help "CtrnInternalOutput-The signal at this internal terminal is where the pulsed or toggled output of the counter appears. The output of a counter pulses o
-
How to read stored procedure/function in SQL*PLUS?
I created procedure and stored in Oracle. Now, I want to read it or may be modify it. I know "Oracle Enterprise Manager" can make it, but if I don't have it, how can I achieve it? I don't want to use "CREATE OR REPLACE PROCEDURE ..." because I need t
-
Substitution for specific subpopulation
Hi, Is there any method to delegate tasks for a set population (positions or sub org units)? My customer has an organization, where all managers have an assistant who can be appointed the responsability over a number of employees. For example, the ma
-
Confused by external drive advice - any views?
From the very introduction of Lightroom 1 I have structured my workflow around the principle of importing, selecting and editing NEFs on the internal hard drive that also holds the programme. Once edited, retained images are moved to a dedicated exte
-
Do I need to reload Mac OS X?
Sorry if this is a stupid question: When I set up my laptop I think that OS X didn't install properly as I am missing some random programs such as Keychain, Comic Life etc and my iPhoto freezes fairly often. A friend told me to simply reload mac OS X