髮絲,髒汙:汙點修復筆刷(適用於單調的背景)
細部修補: 修復筆刷工具 (先用Alt 鍵選參考點)
瞳孔:   紅眼工具
眼白,顴骨:加亮工具
唇色:   海綿工具(加強飽和度,使其亮眼)
眼袋,皮膚:仿製印章工具 (先用Alt 鍵選參考點)
眉毛:   加深工具
小臉,瘦身:濾鏡 => 液化 =>縮攏工具 (筆刷涵蓋範圍回朝中心點縮攏)

Y CP 發表在 痞客邦 留言(0) 人氣()

完全 copy 自 這裡





























Step 1.



  • 開啟檔案:『檔案/開啟舊檔』或 Ctrl + O


Step 2.



  • 去除飽和度,按『影像/調整/去除飽和度』或 Shift + Ctrl + U。
  • 再複製一個圖層,『圖層/新增/拷貝的圖層』或 Ctrl + J。


Step 3.



  • 將新增的圖層1變為負片效果,按『影像/調整/負片效果』或 Ctrl + I。


Step 4.



  • 在圖層浮動視窗中將正常模式改為 加亮顏色 。
    註:此時相片完全變白。


Step 5.



  • 按『濾鏡/模糊/高斯模糊』,調整強度。(數值依實際情況設定)


Step 6.



  • 利用 步驟記錄筆刷工具 ,在選項列將不透明降至 20% 。選用大型的筆刷(200以上)。
  • 按住滑鼠再圖片上畫一遍。
  • 按鍵盤上的 [ 讓筆刷變小,針對雙頰、眼珠再點幾次,可回復更多色彩。


Step 7.



  • 將2個圖層合併,按『圖層/合併可見圖層』或 Ctrl + E。
  • 設定紋理,按『濾鏡/紋理/紋理化』,數值參考右圖。


Step 8.



  • 套用濾鏡後,可在按『編輯/淡化 紋理化』,將不透明度降低,減少紋理效果的強度。



成品


Y CP 發表在 痞客邦 留言(0) 人氣()

The New York Times 
January 19, 2010
The elaborate eye makeup worn by Queen Nefertiti and other ancient Egyptians was believed to have healing powers, conjuring up the protection of the Gods Horus and Ra and warding off illnesses.
Science does not allow for magic, but it does allow for healing cosmetics. The lead-based makeup used by the Egyptians had antibacterial properties that helped prevent infections common at the time, according to a report published in Analytical Chemistry, a semimonthly journal of the American Chemical Society.
"It was puzzling; they were able to build a strong, rich society, so they were not completely crazy," said Christian Amatore, a chemist at the Ecole Normale Superieure in Paris and one of the paper's authors. "But they believed this makeup was healing -- they said incantations as they mixed it, things that today we call garbage."
Amatore and his fellow researchers used electron microscopy and X-ray diffraction to analyze 52 samples from containers of Egyptian makeup preserved at the Louvre. They found that the makeup was primarily made by mixing four lead-based chemicals: galena, which produced dark tones and gloss, and the white materials cerussite, laurionite and phosgenite.
Because the samples had disintegrated over the centuries, the researchers were not able to determine what percentage of the makeup was lead.
Although many written texts, paintings and statues from the period indicate that the makeup was extensively used, Egyptians saw it as magical, not medicine, Amatore said.
In ancient Egypt, during periods when the Nile flooded, Egyptians had infections caused by particles that entered the eye and caused diseases and inflammations. The scientists argue that the lead-based makeup acted as a toxin, killing bacteria before it spread.
But while their research provides a fascinating insight into an ancient culture, the scientists say the makeup is not something that should be used today.
Amatore said that the toxicity of lead compounds overshadowed the benefits and that there had been many documented cases of poisoning as a result of lead in paints and plumbing in the 20th century.
Neal Langerman, a physical chemist and the president of Advanced Chemical Safety, a health safety and environmental protection consulting firm, said, "You probably won't want to do this at home, especially if you have a small child or a dog that likes to lick you."
Nonetheless, Langerman said, it makes sense that the Egyptians were attracted to the compounds.
"Lead and arsenic, among other metals, make beautiful color pigments," he said. "Because they make an attractive color and because you can create a powder with them, it makes sense to use it as a skin colorant."
The issue of lead in makeup continues to be debated in the cosmetics industry, particularly with regard to the small amounts of lead found in some lipsticks.
While some advocacy groups and doctors argue that, over time, lipstick wearers might absorb levels of lead that could result in behavioral issues, the Food and Drug Administration has said that the trace amounts of lead in makeup are too small to cause harm.
"It's the dose that makes the poison," Langerman said, in paraphrasing the Renaissance physician Paracelsus. "A low dose kills the bacteria. In a high dose, you're taking in too much."

Y CP 發表在 痞客邦 留言(0) 人氣()

農曆12月24日子時送神
 「送神早、接神晚」,一般送神都在子時。
今日(23日,阿嬤睡覺以前) 準備:
 金紙二只
 雲馬總馬:恭送諸神騎馬返 回天庭
 橘子六顆:伴手禮
 
農曆正月初四接神 

Y CP 發表在 痞客邦 留言(0) 人氣()

節錄自  here  here
 
介紹
我們在欣賞聖誕紅的時候,常常會將苞葉認為是花的部分。
事實上,聖誕紅真正的花朵是著生在苞葉中央部份那幾顆如豆粒大小壺狀的小花。
就植物學上來說,聖誕紅的「花」就是由這些豆粒般的小花所集合而成的。
每一朵小花是由一枚雌蕊和數枚雄蕊所構成的,小花旁邊附有一個黃色的袋狀物,
這是「蜜槽」,內有蜜腺,到了開花期就會溢出蜜汁。
 
開花習性
聖誕紅是屬於短日照的植物,只要將陽光照射的時間縮短,花芽就會開始分化,苞葉也開始轉紅。
在自然的情況下,每年十月以後,日照變短,這是自然界促進花芽分化的主要功用;
如果聖誕紅在這時候受到路燈、庭園燈或是室內燈光等人工日照影響,延長了接受日照的時間,花芽便無法分化,那麼苞葉也就不會變紅了。
 
照顧
 1.將聖誕紅擺在至少有6小時半日照處,避免陽光直射處。
 2.理想室溫為18℃至25℃。
 3.盆內介質乾後再澆水。
 4.避免將植物擺在高溫處。
 5.避免將植物置於15℃以下環境。
 6.避免澆水過量,或其底盤經常積水,澆水後應讓它完全排水後再擺回原底盤內。
 7.運送植物時,避免招受寒風吹,及過度搖晃植株。
 8.由於聖誕紅的觀賞期長,買回家後可以施一些好康多一號14-12-14於盆面,維持花期所需養分;
 花期結束後,若希望栽培至明年,建議每三個月施用一次好康多一號,並以花寶二號當追肥,補充所需的養分。

Y CP 發表在 痞客邦 留言(0) 人氣()

節錄自 here
 
黃金葛蛇木棍環繞盆栽。
種植時在盆中央可豎立一根蛇木棍,在四周種小苗3—5株,使枝蔓攀附於支柱上生長﹔
在枝蔓生長過程中應經常噴水保濕,以促使莖節上發生不定根,並附於柱上。
注意莖蔓攀爬狀況並適度調整,使葉片大小均勻,可使株形成長完美。
 
黃金葛吊掛或懸垂栽培。
也可將小苗3—5株直接種在盆中,使莖蔓下垂。
小苗期不可多澆水,以免根頸處發生腐爛﹔生長旺期要充分澆水或噴霧。
為保持良好的株形,要修剪過長的莖蔓和紊亂的枝條。
 
施肥
    黃金葛在生長過程中需肥量較大,若營養不足葉片不易長大。
    生長期(3~8 月)應每週施肥,要常以濕布清潔葉面。
    一般每兩周左右施一次液肥。施肥時不要偏施氮肥,否則葉面上斑點、斑塊容易變綠,會降低觀賞價值。
日照
    除夏天陽光過強應遮陰外,其餘時期應盡可能讓其多接受陽光,使其節問充實、葉色濃綠。
    若光線過弱,葉面的斑紋也容易變少或消失,影響觀賞效果。

Y CP 發表在 痞客邦 留言(0) 人氣()

新增環境變數
=>使用者變數 
名稱MATLAB , 路徑C:\Program Files\MATLAB71
 
專案
專案=>屬性=>組態屬性=>C/C++ =>一般=>include C:\Program Files\MATLAB71\extern\include;C:\Program Files\MATLAB71\simulink\include
專案=>屬性=>組態屬性=>連結器=>命令列=>其他選項 libeng.lib libmat.lib libmx.lib libmex.lib
工具=>選項=>VC++目錄=>程式庫檔  $(MATLAB)\extern\lib,   $(MATLAB)\extern\lib\win32\microsoft
 

Y CP 發表在 痞客邦 留言(0) 人氣()

#include <windows.h> 
#include <tchar.h>   
 
int main(int argc, char *argv[]){
    WIN32_FIND_DATA FileData;
    BOOL fFinished;
    HANDLE hList;
    FILE *stream;
   
    hList = FindFirstFile("*", &FileData);
    if (hList == INVALID_HANDLE_VALUE){
        printf("No files under this direction");
    }
    else{
              fFinished = FALSE;
               while (!fFinished){
                         if ( strstr(FileData.cFileName,".txt") ){ //判斷副檔名是不是 .txt  
                                  stream = fopen(FileData.cFileName,"r"); //fopen( const char * filename, const char * mode );
                                  if(stream==NULL){
                                            //return;
                                  }
                                  else{ //讀檔                    
                                  }
                                  fclose(stream); 
                           }//if 判斷副檔名是不是 .txt
                          //--------------計算-------------//
                           if (!FindNextFile(hList, &FileData)){
                                   if (GetLastError() == ERROR_NO_MORE_FILES){
                                           fFinished = TRUE;
                                   }
                            }
                 }//while
    }
    FindClose(hList);
    system("PAUSE");
    return EXIT_SUCCESS;
}
 

Y CP 發表在 痞客邦 留言(0) 人氣()

Breaking Changes (CRT)   中文   reference1  2
 
fopen => fopen_s
FILE*  fopen ( const char * filename,  const char * mode );.
errno_t  fopen_s( FILE** pFile,  const char *filename,  const char *mode );
 
stream = fopen(FileData.cFileName,"r");                   
if(stream==NULL){
        printf("cannot open file\n");
        exit(
0);
}
------------------------------------------------
if( fopen_s( &stream, FileData.cFileName, "r" ) !=0 )
    printf(
"The file 'crt_fopen_s.c' was not opened\n" );
    exit(0);

}
 

Y CP 發表在 痞客邦 留言(0) 人氣()

#include <engine.h>
//型態要用double; 元素要column major順序給定
double cT[5] = {1,2,3,4,5};
Engine *ep;     // 宣告Matlab engine
mxArray *T , *result = NULL;      // 宣告Matlab變數;for output / input
// 確定Matlab engine開啟成功
if (!(ep = engOpen("\0"))) {
      fprintf(stderr, "\nCan't start MATLAB engine\n");
      return EXIT_FAILURE;
}
/*  建立Matlab陣列,有real(mxREAL) / complex(mxCOMPLEX) 兩種型態
 mxCreateDoubleMatrix(mwSize m, mwSize n, mxComplexity ComplexFlag)  // m * n 的陣列   */
mT = mxCreateDoubleMatrix(1, 5, mxREAL);
memcpy((void *)mxGetPr(mT), (void *)cT, sizeof(cT));    // cT是 C 變數
engPutVariable(ep, "T", mT);    // 將值給Matlab
engEvalString(ep, "D = .5.*(-9.8).*T.^2;");   //  engEvalString (ep, "在 Matlab 中的指令");
result = engGetVariable(ep, "x");   // 從Matlab取值;return mxArray 指標
str = mxGetPr(result);   // return C 的double 指標

 //印出解
int size;
size = mxGetM(result) * mxGetN(result);   // mxGetM( )取得mxArray*所指的陣列row數
for(int i=0;i<size;i++){
      printf("%lf,",str[i]);
}
mxDestroyArray(T);    // 清空記憶體
engClose(ep);    // 關閉 Matlab engine

Y CP 發表在 痞客邦 留言(0) 人氣()

#include <fstream>
ofstream Outfile;
Outfile.open("STAR.csv" ,ios::out | ios::trunc);   // 開啟為輸出狀態,若檔案已存在則清除檔案內容,重新寫入
Outfile<<i<<","<<endl;
Outfile.close();
 
Reference

Y CP 發表在 痞客邦 留言(0) 人氣()

  • Sep 16 Wed 2009 00:23
  • 開學

今天在對號列車上,一位老婆婆從前面車廂走過來,滿頭白髮,帶著一頂小帽,穿著算乾淨整齊。
 
她一個人搭車,要上洗手間,門太重了打不開。我去幫她開了廁所的門,並等她好了才離開。
 
老婆婆上完廁所,坐在前面。我在後面打量著她:八十多歲了吧,怎會自己一個人搭車,又是要搭去哪裡?
 
直到快到站了,我上前詢問才得知阿婆也是要在嘉義站下車。
 
她還慌慌張張的,若沒有提醒,恐怕就搭過頭了。
 
 
老婆婆下車的時候顫顫巍巍,無法彎曲的膝蓋,連下階梯都有問題,幸好站務人員看到後有來幫忙,
 
將下火車後的婆婆,從第二月台用輪椅推到第一月台。
 
我陪伴在旁邊,聽到婆婆說,原來她86歲了,有一雙孝順的兒女均因故過世。
 
另外還有一兒一女卻也不在身邊照顧。而今天來到嘉義是為了去拜拜。
 
她虔誠的信仰使她20幾年來,每年都會來到這間寺廟。
 
當站務人員將她推到計程車搭乘處,運將們都圍過來問是否要搭車
 
一直以來我對嘉義的計程車有著很不好的印象
 
今天我卻看到運將們雖然得知婆婆不是要搭他們的車,而是要另外叫車 (婆婆以前搭過的)
 
運將們卻都還是很熱心的幫阿婆打電話,招呼她坐著休息,
 
我就覺得這些阿伯們還挺不壞嘛,沒有我想像中的勢利眼 歡樂派對
 
 
來接婆婆的司機也很好,看起來很年輕,一開車門就對婆婆說:阿婆,哩奈歌自己一個人來阿啦!
 
我請他回程送婆婆到火車站後,再拜託站務人員幫忙,他也親切的笑著答應。那個笑容真的很美。
 
 
如果是自己的長輩出門在外有困難,我也希望有熱心的人能幫忙。
 
有時候一件舉手之勞的善事,可以讓自己的心更加平靜快樂。
 
 
難道想去幫婆婆開廁所門的只有我嗎? 我想應該不是吧,很多人都是很善良的
 
只是我比較「厚臉皮」,比較不怕旁邊的人怎麼看我,也比較不怕好意被拒絕。
 
 
如果我有能力還不主動幫忙,事後的後悔可是比在大庭廣眾下被拒絕更難受!
 
 
婆婆的身影令我想起自家的長輩,希望婆婆能一直遇到好心人。
 
希望我們的政府,台灣的教育能夠培育出更多善良的心,能夠「大庇天下老弱俱歡顏」。
 
這才是「愛待丸」啦~~~~~~~ 開懷大笑

Y CP 發表在 痞客邦 留言(1) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。