2018년 1월 29일 월요일

바이트 <-> 더블 간 변형 방법

https://stackoverflow.com/questions/7832120/how-to-convert-a-byte-array-to-double-array-in-c

바이트 <-> 더블 간 변형 방법

emgucv stitch

  Mat i1 = new Mat("D:/New folder/images/Fit01.jpg", LoadImageType.Color);
            Mat i2 = new Mat("D:/New folder/images/Fit02.jpg", LoadImageType.Color);
            Mat i3 = new Mat("D:/New folder/images/Fit02.jpg", LoadImageType.Color);
            using (VectorOfMat vmsrc = new VectorOfMat(i1, i2, i3))
            {
                Image<Bgr, byte> res = new Image<Bgr, byte>(1000, 750);
                Mat result = new Mat();
                Stitcher stitcher = new Stitcher(false);
                stitcher.Stitch(vmsrc, result);
                ImageViewer.Show(result);
            } 

2018년 1월 11일 목요일

Paket에 대해

paket은 오픈소스 프로젝트로 3년정도 되었다.

F#으로 작성 되었지만, C#에서도 똑같이 동작한다.

목적은 복잡한 Dependency를 편하게 관리하도록 하는것이다.

Nuget과 목적도 같고, Add-on 성격을 지닌고 있다.

**
In other words, you can have a dependency on a given file from a specific commit on GitHub. For example, you could have a dependency on the SqlMapper.cs in the Dapper project, instead of downloading a whole NuGet package. Or you could share a single cs file across multiple solutions without the need to have a private NuGet server to share them.

Nuget의 경우는 만약에 참조중인 프로젝트와 참조한 프로젝트가 같은 dll을 참조하고있고 버전이 다를경우는, 하위버전으로 다 통일 시켜버린다. 


 Paket은 3대의 파일로 이루어져있다. 

1.  paket.dependencies : 각각의 프로젝트의  dependency에 대한 정보. 
2. paket.lock : dependency 간의 관계 
3. paket.references  : 유저가 수정 할 수 있는 파일 

https://cockneycoder.wordpress.com/2017/08/07/getting-started-with-paket-part-1/