Intel® Integrated Performance Primitives
Deliberate problems developing high-performance vision, signal, security, and storage applications.

Merging 2 images

trlinux
ビギナー
1,500件の閲覧回数
Hi there,
I have 2 images with alpha channels, one of them alpha value is equal to 255 and the other 128 booth of them same size, let me know how can i merge these images together. I wanna place transparent image on to full visible image(like background). Is there any easy way or ipp function for this ? Thanks ...
0 件の賞賛
1 解決策
Naveen_G_Intel
従業員
1,500件の閲覧回数

Hi,

Probably ippiAlphaCompC function will match your requirement. This function is basically combines two images using constant alpha values.

Please refer to ippidemo.exe inside the IPP installation folder. Open an image, then select Process->Process by -> Logical& Alpha comp->Alpha Composition, then setect ippiAlphaCompC function and second image.

To get more information about this function refer to - http://software.intel.com/sites/products/documentation/hpc/ipp/ippi/ippi_ch5/functn_AlphaCompC.html

Thanks,

Naveen Gv

元の投稿で解決策を見る

5 返答(返信)
Naveen_G_Intel
従業員
1,501件の閲覧回数

Hi,

Probably ippiAlphaCompC function will match your requirement. This function is basically combines two images using constant alpha values.

Please refer to ippidemo.exe inside the IPP installation folder. Open an image, then select Process->Process by -> Logical& Alpha comp->Alpha Composition, then setect ippiAlphaCompC function and second image.

To get more information about this function refer to - http://software.intel.com/sites/products/documentation/hpc/ipp/ippi/ippi_ch5/functn_AlphaCompC.html

Thanks,

Naveen Gv

trlinux
ビギナー
1,500件の閲覧回数
This is exactly , what i was looking for ... Thanks a lot sir ...
marrisa
ビギナー
1,500件の閲覧回数

HI there

I have  encountered the same problem.I have tried to merge the image using this code which is from google:

namespace WindowsApplication1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        public static string FolderName = "c:/";

        private void button1_Click(object sender, EventArgs e)
        {
            string fileName1 = FolderName + "Sample1.tif";
            string fileName2 = FolderName + "Sample2.tif";
            string fileNameMerged = FolderName + "Merged.tif";

            REDocument doc1 = REFile.OpenDocumentFile(fileName1, new TIFDecoder());//use TIFDecoder open one tif file

            REDocument doc2 = REFile.OpenDocumentFile(fileName2, new TIFDecoder());//use TIFDecoder open another tif file

            BaseDocument docMerged = doc1.MergeDocument(doc2);//merge tiff image

            REFile.SaveDocumentFile((REDocument)docMerged, fileNameMerged, new TIFEncoder());//save new tif

But it display nothing.What's wrong with my code?I know there are many third  party program for image processing.So is there any powerful image program which supports to merge image directly.Thanks for any suggestion.

Igor_A_Intel
従業員
1,500件の閲覧回数

Hi Marrisa,

your question is not related to IPP, guess it's for another forum...

regards, Igor

Daniel_F_2
ビギナー
1,500件の閲覧回数

This Image Processing Library integrates mature and reliable functions for developers to merge images. You are capable of merging two or more image files into one.

返信