Beispiel #1
0
        private uint ConvertISO4ToISO2(byte[] ISOBuf, out NBioAPI.Export.EXPORT_DATA exportData)
        {
            NBioBSPISO4.NIMPORTRAWSET ImportRawSet;
             string szTemp;

             listRet.Items.Add("ISO 19794-2 data creation start...");

             exportData = new NBioAPI.Export.EXPORT_DATA();

             uint nRet = NBioBSPISO4.ImportISOToRaw(ISOBuf, out ImportRawSet);

             if (nRet == NBioAPI.Error.NONE)
             {
            NBioAPI.Type.HFIR hProcessedFIR;

            nRet = MakeFIRFromRawSet(ImportRawSet, out hProcessedFIR);

            if (nRet == NBioAPI.Error.NONE)
            {
               // Make ISO 19794-2 Data
               nRet = m_Export.NBioBSPToFDx(hProcessedFIR, out exportData, NBioAPI.Type.MINCONV_DATA_TYPE.MINCONV_TYPE_ISO);

               if (nRet != NBioAPI.Error.NONE)
               {
                  szTemp = "NBioBSPToFDx Error: " + nRet;
                  listRet.Items.Add(szTemp);
               }

               hProcessedFIR.Dispose();
            }
             }
             else
             {
            szTemp = "ImportISOToRaw Error: " + nRet;
            listRet.Items.Add(szTemp);
             }

             return nRet;
        }
Beispiel #2
0
        private uint ConvertISO4ToISO2(byte[] ISOBuf, out NBioAPI.Export.EXPORT_DATA exportData)
        {
            NBioBSPISO4.NIMPORTRAWSET ImportRawSet;
            string szTemp;

            listRet.Items.Add("ISO 19794-2 data creation start...");

            exportData = new NBioAPI.Export.EXPORT_DATA();

            uint nRet = NBioBSPISO4.ImportISOToRaw(ISOBuf, out ImportRawSet);

            if (nRet == NBioAPI.Error.NONE)
            {
                NBioAPI.Type.HFIR hProcessedFIR;

                nRet = MakeFIRFromRawSet(ImportRawSet, out hProcessedFIR);

                if (nRet == NBioAPI.Error.NONE)
                {
                    // Make ISO 19794-2 Data
                    nRet = m_Export.NBioBSPToFDx(hProcessedFIR, out exportData, NBioAPI.Type.MINCONV_DATA_TYPE.MINCONV_TYPE_ISO);

                    if (nRet != NBioAPI.Error.NONE)
                    {
                        szTemp = "NBioBSPToFDx Error: " + nRet;
                        listRet.Items.Add(szTemp);
                    }

                    hProcessedFIR.Dispose();
                }
            }
            else
            {
                szTemp = "ImportISOToRaw Error: " + nRet;
                listRet.Items.Add(szTemp);
            }

            return(nRet);
        }