newstring = strrep(orgstring, word1,word2)


strrep 함수는 orgstring에서 word1을 찾아서 word2로 바꾸어 newstring에 저장한다.


예제)


str1 = 'lonesome';

str2 = strrep(str1,'lone', 'awe');


결과 str2 = 'awesome'




 STRREP Replace string with another.

    MODIFIEDSTR = STRREP(ORIGSTR,OLDSUBSTR,NEWSUBSTR) replaces all 

    occurrences of the string OLDSUBSTR within string ORIGSTR with the

    string NEWSUBSTR.

 

    Notes:

 

    * STRREP accepts input combinations of single strings, strings in 

      scalar cells, and same-sized cell arrays of strings. If any inputs 

      are cell arrays, STRREP returns a cell array. 

 

    * STRREP does not find empty strings for replacement. That is, when

      ORIGSTR and OLDSUBSTR both contain the empty string (''), STRREP does

      not replace '' with the contents of NEWSUBSTR.

 

    Examples:

 

    % Example 1: Replace text in a character array.

 

        claim = 'This is a good example';

        new_claim = strrep(claim, 'good', 'great')

 

        new_claim = 

        This is a great example.

 

    % Example 2: Replace text in a cell array.

 

        c_files = {'c:\cookies.m'; ...

                   'c:\candy.m';   ...

                   'c:\calories.m'};

        d_files = strrep(c_files, 'c:', 'd:')

 

        d_files = 

            'd:\cookies.m'

            'd:\candy.m'

            'd:\calories.m'

 

    % Example 3: Replace text in a cell array with values in a second cell

    % array.

 

        missing_info = {'Start: __'; ...

                        'End: __'};

        dates = {'01/01/2001'; ...

                '12/12/2002'};

        complete = strrep(missing_info, '__', dates)

 

        complete = 

            'Start: 01/01/2001'

            'End: 12/12/2002'

     

    See also strfind, regexprep.


    Reference page in Help browser

       doc strrep

Posted by 우주여행가
,

http://videolectures.net/eccv2012_firenze/


ECCV 2012 비디오 강의

Posted by 우주여행가
,

https://www.coursera.org/

http://ocw.mit.edu/index.htm   (MIT)

http://www.udacity.com/


https://www.coursera.org/course/cs101  (Stanford Computer Science 101)

https://www.coursera.org/course/algo (design and analysis of algorithm)

Posted by 우주여행가
,

1. 이미지의 모든 픽셀을 0으로 초기화 할 경우


IplImage* img;

img = cvCreateImage(cvSize(640,480),IPL_DEPTH_8U,1);

cvSetZero(img);



2. 이미지의 모든 픽셀을 임의의 값으로 초기화 할 경우


IplImage* img;

img = cvCreateImage(cvSize(640,480),IPL_DEPTH_8U,1);

cvSet(img,cvScalarAll(100),0);  // 이미지의 모든 픽셀값이 100으로 초기화  , R=G=B=100




Posted by 우주여행가
,

Video Google 데모

연구관련 2012. 5. 25. 18:27

http://www.robots.ox.ac.uk/~vgg/research/vgoogle/

Posted by 우주여행가
,

ASIFT 소스 코드

연구관련 2012. 5. 16. 18:11

http://www.ipol.im/pub/algo/my_affine_sift/


http://www.cmap.polytechnique.fr/~yu/research/ASIFT/demo.html

Posted by 우주여행가
,

http://www.vision.caltech.edu/malaa/software/research/image-search/

'연구관련' 카테고리의 다른 글

Video Google 데모  (0) 2012.05.25
ASIFT 소스 코드  (0) 2012.05.16
고민입니다.. 제 이야기 좀 들어주세요  (0) 2012.02.07
Vector Quantization, Data compression (압축)  (1) 2011.12.01
SIFT 관련 자세한 설명 추천  (0) 2011.09.27
Posted by 우주여행가
,





야식테러 ㅋㅋㅋ



논문 발표에 쓰기 위한 자작 글 ㅋㅋㅋ 

'연구관련' 카테고리의 다른 글

ASIFT 소스 코드  (0) 2012.05.16
Caltech Large Scale Image Search Toolbox  (0) 2012.04.20
Vector Quantization, Data compression (압축)  (1) 2011.12.01
SIFT 관련 자세한 설명 추천  (0) 2011.09.27
특허 검색 사이트  (0) 2011.09.22
Posted by 우주여행가
,

Image 픽셀의 범위가 [0, 255] 가 아닐때 , 최대, 최소값을 고려하여 scaling


img
= img - min(min(img));  

img = img .* ((255)/max(max(img))); 

*참고 

imagesc 라는 함수는 image 의 픽셀범위를 [0,255]로 scaling하여 display해줌.. 
Posted by 우주여행가
,
Vector Quantization (VQ)에 대해 알기 쉽게 설명한 site
http://www.data-compression.com/vq.shtml

그 외에도 기본적인 압축이론에 대한 설명이 잘되어 있다.
http://www.data-compression.com/index.shtml 

'연구관련' 카테고리의 다른 글

Caltech Large Scale Image Search Toolbox  (0) 2012.04.20
고민입니다.. 제 이야기 좀 들어주세요  (0) 2012.02.07
SIFT 관련 자세한 설명 추천  (0) 2011.09.27
특허 검색 사이트  (0) 2011.09.22
읽어볼 논문  (0) 2011.08.09
Posted by 우주여행가
,