Ilwoo Lyu

54 papers B 14Journal 21Unranked 19
YearRankTypeTitle / Venue / Authors
2025 conf
ISBI
Seunghwan Lee, Jiwon Son, Seungeun Lee, Ethan H. Willbrand, Benjamin J. Parker, Kevin S. Weiner, Ilwoo Lyu
2025 J jnl
IEEE Trans. Medical Imaging
Seungeun Lee, Seunghwan Lee, Ethan H. Willbrand, Benjamin J. Parker, Silvia A. Bunge, Kevin S. Weiner, Ilwoo Lyu
2025 J jnl
IEEE Trans. Medical Imaging
Seungeun Lee, Seunghwan Lee, Sunghwa Ryu, Ilwoo Lyu
2025 conf
MICCAI (16)
Seungeun Lee, Sergey Pyatkovskiy, Jaejun Yoo, Ilwoo Lyu
2024 conf
BCI
Yong Jeon Cheong, Jihyun Bae, Seonkyoung Lee, Ro Ji Hyeong, Hirotaka Kosaka, Ilwoo Lyu, Minyoung Jung
2023 J jnl
Comput. Biol. Medicine
Yue Liu, Shunxing Bao, Dario J. Englot, Victoria L. Morgan, Warren D. Taylor, Ying Wei, Ipek Oguz, Bennett A. Landman, Ilwoo Lyu
2023 conf
ShapeMI@MICCAI
Seungeun Lee, Sunghwa Ryu, Seunghwan Lee, Ilwoo Lyu
2022 J jnl
J. Digit. Imaging
Shunxing Bao, Brian D. Boyd, Praitayini Kanakaraj, Karthik Ramadass, Francisco A. C. Meyer, Yuqian Liu, William E. Duett, Yuankai Huo, Ilwoo Lyu, David H. Zald, Seth A. Smith, Baxter P. Rogers, Bennett A. Landman
2022 conf
PRIME@MICCAI
Roza G. Bayrak, Ilwoo Lyu, Catie Chang
2022 J jnl
IEEE Trans. Medical Imaging
Seungbo Ha, Ilwoo Lyu
2022 B conf
Image Processing
Karthik Ramadass, Francois Rheault, Leon Y. Cai, Lucas W. Remedios, Micah D'Archangel, Ilwoo Lyu, Laura A. Barquero, Allen T. Newton, Laurie E. Cutting, Yuankai Huo, Bennett A. Landman
2021 J jnl
IEEE Trans. Medical Imaging
Yucheng Tang, Riqiang Gao, Shizhong Han, Yunqiang Chen, Dashan Gao, Vishwesh Nath, Camilo Bermudez, Michael R. Savona, Shunxing Bao, Ilwoo Lyu, Yuankai Huo, Bennett A. Landman
2021 B conf
Image Processing
Yue Liu, Dario J. Englot, Victoria L. Morgan, Warren D. Taylor, Ying Wei, Ipek Oguz, Bennett A. Landman, Ilwoo Lyu
2021 conf
MICCAI (7)
Roza G. Bayrak, Colin B. Hansen, Jorge Alberto Salas, Nafis Ahmed, Ilwoo Lyu, Yuankai Huo, Catie Chang
2021 J jnl
Medical Image Anal.
Yucheng Tang, Riqiang Gao, Ho Hin Lee, Shizhong Han, Yunqiang Chen, Dashan Gao, Vishwesh Nath, Camilo Bermudez, Michael R. Savona, Richard G. Abramson, Shunxing Bao, Ilwoo Lyu, Yuankai Huo, Bennett A. Landman
2021 B conf
Image Processing
Leon Y. Cai, Cailey I. Kerley, Chang Yu, Katherine S. Aboud, Lori L. Beason-Held, Andrea T. Shafer, Susan M. Resnick, Lori C. Jordan, Adam W. Anderson, Kurt G. Schilling, Ilwoo Lyu, Bennett A. Landman
2021 J jnl
NeuroImage
Ilwoo Lyu, Shuxing Bao, Lingyan Hao, Jewelia Yao, Jacob A. Miller, Willa Voorhies, Warren D. Taylor, Silvia A. Bunge, Kevin S. Weiner, Bennett A. Landman
2021 J jnl
Neuroinformatics
Colin B. Hansen, Qi Yang, Ilwoo Lyu, Francois Rheault, Cailey I. Kerley, Bramsh Qamar Chandio, Shreyas Fadnavis, Owen A. Williams, Andrea T. Shafer, Susan M. Resnick, David H. Zald, Laurie E. Cutting, Warren D. Taylor, Brian D. Boyd, Eleftherios Garyfallidis, Adam W. Anderson, Maxime Descoteaux, Bennett A. Landman, Kurt G. Schilling
2021 conf
COMPAY@MICCAI
Shunxing Bao, Yucheng Tang, Ho Hin Lee, Riqiang Gao, Sophie Chiron, Ilwoo Lyu, Lori A. Coburn, Keith T. Wilson, Joseph T. Roland, Bennett A. Landman, Yuankai Huo
2021 J jnl
CoRR
Shunxing Bao, Yucheng Tang, Ho Hin Lee, Riqiang Gao, Sophie Chiron, Ilwoo Lyu, Lori A. Coburn, Keith T. Wilson, Joseph T. Roland, Bennett A. Landman, Yuankai Huo
2021 B conf
Image Processing
Chang Yu, Yue Liu, Leon Y. Cai, Cailey I. Kerley, Kaiwen Xu, Warren D. Taylor, Hakmook Kang, Andrea T. Shafer, Lori L. Beason-Held, Susan M. Resnick, Bennett A. Landman, Ilwoo Lyu
2020 conf
ISBI
Lingyan Hao, Shunxing Bao, Yucheng Tang, Riqiang Gao, Prasanna Parvathaneni, Jacob A. Miller, Willa Voorhies, Jewelia Yao, Silvia A. Bunge, Kevin S. Weiner, Bennett A. Landman, Ilwoo Lyu
2020 J jnl
IEEE Trans. Medical Imaging
Shih-Gu Huang, Ilwoo Lyu, Anqi Qiu, Moo K. Chung
2019 conf
MICCAI (3)
Prasanna Parvathaneni, Shunxing Bao, Vishwesh Nath, Neil D. Woodward, Daniel O. Claassen, Carissa J. Cascio, David H. Zald, Yuankai Huo, Bennett A. Landman, Ilwoo Lyu
2019 J jnl
CoRR
Vishwesh Nath, Ilwoo Lyu, Kurt G. Schilling, Prasanna Parvathaneni, Colin B. Hansen, Yucheng Tang, Yuankai Huo, Vaibhav A. Janve, Yurui Gao, Iwona Stepniewska, Adam W. Anderson, Bennett A. Landman
2019 conf
MICCAI (3)
Vishwesh Nath, Ilwoo Lyu, Kurt G. Schilling, Prasanna Parvathaneni, Colin B. Hansen, Yuankai Huo, Vaibhav A. Janve, Yurui Gao, Iwona Stepniewska, Adam W. Anderson, Bennett A. Landman
2019 J jnl
CoRR
Shih-Gu Huang, Ilwoo Lyu, Anqi Qiu, Moo K. Chung
2019 conf
MICCAI (4)
Shih-Gu Huang, Ilwoo Lyu, Anqi Qiu, Moo K. Chung
2019 B conf
Image Processing
Vishwesh Nath, Samuel Remedios, Prasanna Parvathaneni, Colin B. Hansen, Roza G. Bayrak, Camilo Bermudez, Justin A. Blaber, Kurt G. Schilling, Vaibhav A. Janve, Yurui Gao, Yuankai Huo, Ilwoo Lyu, Owen A. Williams, Susan M. Resnick, Lori L. Beason-Held, Baxter P. Rogers, Iwona Stepniewska, Adam W. Anderson, Bennett A. Landman
2019 J jnl
Medical Image Anal.
Ilwoo Lyu, Hakmook Kang, Neil D. Woodward, Martin A. Styner, Bennett A. Landman
2018 J jnl
Medical Image Anal.
Ilwoo Lyu, Sun Hyung Kim, Jessica B. Girault, John H. Gilmore, Martin A. Styner
2018 B conf
Image Processing
Prasanna Parvathaneni, Ilwoo Lyu, Yuankai Huo, Justin A. Blaber, Allison E. Hainline, Hakmook Kang, Neil D. Woodward, Bennett A. Landman
2018 B conf
Image Processing
Meg F. Bobo, Shunxing Bao, Yuankai Huo, Yuang Yao, Jack Virostko, Andrew J. Plassard, Ilwoo Lyu, Albert Assad, Richard G. Abramson, Melissa A. Hilmes, Bennett A. Landman
2018 B conf
Image Processing
Ilwoo Lyu, Jonathan Perdomo, Gabriel S. Yapuncich, Beatriz Paniagua, Doug M. Boyer, Martin A. Styner
2018 conf
MICCAI (1)
Ilwoo Lyu, Martin A. Styner, Bennett A. Landman
2018 J jnl
CoRR
Vishwesh Nath, Prasanna Parvathaneni, Colin B. Hansen, Allison E. Hainline, Camilo Bermudez, Samuel Remedios, Justin A. Blaber, Kurt G. Schilling, Ilwoo Lyu, Vaibhav A. Janve, Yurui Gao, Iwona Stepniewska, Baxter P. Rogers, Allen T. Newton, Larry Taylor Davis, Jeffrey Luci, Adam W. Anderson, Bennett A. Landman
2018 B conf
Image Processing
Vishwesh Nath, Kurt G. Schilling, Allison E. Hainline, Prasanna Parvathaneni, Justin A. Blaber, Ilwoo Lyu, Adam W. Anderson, Hakmook Kang, Allen T. Newton, Baxter P. Rogers, Bennett A. Landman
2018 B conf
Image Processing
Ilwoo Lyu, Hakmook Kang, Neil D. Woodward, Bennett A. Landman
2018 J jnl
IEEE Trans. Medical Imaging
Ilwoo Lyu, Sun Hyung Kim, Neil D. Woodward, Martin A. Styner, Bennett A. Landman
2018 conf
IEEE BigData
Shunxing Bao, Prasanna Parvathaneni, Yuankai Huo, Yogesh D. Barve, Andrew J. Plassard, Yuang Yao, Hongyang Sun, Ilwoo Lyu, David H. Zald, Bennett A. Landman, Aniruddha S. Gokhale
2018 J jnl
J. Digit. Imaging
Yuankai Huo, Justin A. Blaber, Stephen M. Damon, Brian D. Boyd, Shunxing Bao, Prasanna Parvathaneni, Camilo Bermudez, Shikha Chaganti, Vishwesh Nath, Jasmine M. Greer, Ilwoo Lyu, William R. French, Allen T. Newton, Baxter P. Rogers, Bennett A. Landman
2017 J jnl
CoRR
Shunxing Bao, Yuankai Huo, Prasanna Parvathaneni, Andrew J. Plassard, Camilo Bermudez, Yuang Yao, Ilwoo Lyu, Aniruddha S. Gokhale, Bennett A. Landman
2017 conf
MICCAI (1)
Ilwoo Lyu, Sun Hyung Kim, Jessica Bullins, John H. Gilmore, Martin A. Styner
2016 conf
ISBI
Ilwoo Lyu, Sun Hyung Kim, Martin Andreas Styner
2016 J jnl
NeuroImage
Sun Hyung Kim, Ilwoo Lyu, Vladimir S. Fonov, Clement Vachet, Heather Cody Hazlett, Rachel Gimpel Smith, Joseph Piven, Stephen Dager, Robert C. McKinstry, John R. Pruett Jr., Alan C. Evans, D. Louis Collins, Kelly N. Botteron, Robert T. Schultz, Guido Gerig, Martin A. Styner
2016 B conf
Image Processing
Joohwi Lee, Ilwoo Lyu, Martin Styner
2015 B conf
Image Processing
Ilwoo Lyu, Sun Hyung Kim, Martin Styner
2014 B conf
Image Processing
Joohwi Lee, Ilwoo Lyu, Martin Styner
2013 B conf
Image Processing
Ilwoo Lyu, Sun Hyung Kim, Joon-Kyung Seong, Sang Wook Yoo, Alan C. Evans, Yundi Shi, Mar Sanchez, Marc Niethammer, Martin A. Styner
2013 conf
MICCAI (2)
Manasi Datar, Ilwoo Lyu, Sun Hyung Kim, Joshua E. Cates, Martin Andreas Styner, Ross T. Whitaker
2013 conf
IPMI
Ilwoo Lyu, Sun Hyung Kim, Joon-Kyung Seong, Sang Wook Yoo, Alan C. Evans, Yundi Shi, Mar Sanchez, Marc Niethammer, Martin Andreas Styner
2013 conf
MICCAI (3)
Joohwi Lee, Ilwoo Lyu, Ipek Oguz, Martin Andreas Styner
2012 conf
MCV
Ilwoo Lyu, Gang Li, Minjeong Kim, Dinggang Shen
2010 J jnl
NeuroImage
Ilwoo Lyu, Joon-Kyung Seong, Sung Yong Shin, Kiho Im, Jee Hoon Roh, Minjeong Kim, Geon Ha Kim, Jong Hun Kim, Alan C. Evans, Duk L. Na, Jong-Min Lee
redb/extractors/decompiler/apk/smali_parser.py
← Index redb/extractors/decompiler/apk/smali_parser.py python
"""Smali file parser — extracts individual method bodies from apktool output.

Parses .smali files produced by apktool and extracts per-method bodies,
instruction counts, and register counts.
"""

import os
import re
from dataclasses import dataclass, field
from typing import Dict, List, Optional


@dataclass
class SmaliMethod:
    """Parsed smali method data."""
    class_name: str
    method_name: str
    method_signature: str
    body: str
    instruction_count: int = 0
    register_count: int = 0
    access_flags: List[str] = field(default_factory=list)


# Directives start with '.' — these are metadata, not instructions
_DIRECTIVE_RE = re.compile(r"^\s*\.")
# Labels start with ':'
_LABEL_RE = re.compile(r"^\s*:")
# Blank or comment lines
_BLANK_OR_COMMENT_RE = re.compile(r"^\s*(#.*)?$")
# Method declaration
_METHOD_START_RE = re.compile(
    r"^\.method\s+(.*?)\s+(\S+)\(([^)]*)\)(\S+)\s*$"
)
_METHOD_START_SIMPLE_RE = re.compile(
    r"^\.method\s+(.*)"
)
# .registers or .locals directive
_REGISTERS_RE = re.compile(r"^\s*\.registers\s+(\d+)")
_LOCALS_RE = re.compile(r"^\s*\.locals\s+(\d+)")
# .line directive
_LINE_RE = re.compile(r"^\s*\.line\s+\d+")


class SmaliParser:
    """Parser for apktool smali output files."""

    @staticmethod
    def parse_smali_file(filepath: str) -> List[SmaliMethod]:
        """Parse a single .smali file and return list of methods.

        Each .smali file contains one class with all its methods.
        """
        with open(filepath, "r", encoding="utf-8", errors="replace") as f:
            content = f.read()

        return SmaliParser._parse_smali_content(content, filepath)

    @staticmethod
    def _parse_smali_content(content: str, source: str = "") -> List[SmaliMethod]:
        """Parse smali text content and extract methods."""
        lines = content.split("\n")
        methods = []

        # Extract class name from .class directive
        class_name = ""
        for line in lines:
            if line.startswith(".class "):
                parts = line.split()
                class_name = parts[-1]  # Last token is the class descriptor
                break

        in_method = False
        method_lines = []
        method_header = ""
        access_flags = []
        skip_method = False

        for line in lines:
            if line.startswith(".method "):
                in_method = True
                method_lines = []
                method_header = line
                skip_method = False

                # Parse access flags and method signature
                remainder = line[len(".method "):].strip()
                tokens = remainder.split()
                access_flags = []
                method_sig_token = tokens[-1] if tokens else ""

                for t in tokens[:-1]:
                    access_flags.append(t)

                # Skip abstract and native methods (no body)
                if "abstract" in access_flags or "native" in access_flags:
                    skip_method = True

            elif line.startswith(".end method"):
                if in_method and not skip_method:
                    body = "\n".join(method_lines)
                    method_name, signature = SmaliParser._parse_method_sig(
                        method_header
                    )
                    instruction_count = SmaliParser.count_instructions(body)
                    register_count = SmaliParser._extract_register_count(body)

                    methods.append(
                        SmaliMethod(
                            class_name=class_name,
                            method_name=method_name,
                            method_signature=signature,
                            body=body,
                            instruction_count=instruction_count,
                            register_count=register_count,
                            access_flags=access_flags,
                        )
                    )
                in_method = False
                method_lines = []
                access_flags = []

            elif in_method and not skip_method:
                method_lines.append(line)

        return methods

    @staticmethod
    def parse_smali_directory(dirpath: str) -> Dict[str, SmaliMethod]:
        """Parse all .smali files in a directory tree.

        Returns dict keyed by 'ClassName->methodName(signature)ReturnType'.
        """
        result = {}
        for root, _dirs, files in os.walk(dirpath):
            for fname in files:
                if fname.endswith(".smali"):
                    fpath = os.path.join(root, fname)
                    try:
                        methods = SmaliParser.parse_smali_file(fpath)
                        for m in methods:
                            key = SmaliParser.make_method_key(
                                m.class_name, m.method_name, m.method_signature
                            )
                            result[key] = m
                    except Exception:
                        continue
        return result

    @staticmethod
    def normalize_smali_body(body: str) -> str:
        """Normalize smali body for consistent hashing.

        Strips comments, .line directives, normalizes whitespace.
        """
        lines = []
        for line in body.split("\n"):
            stripped = line.strip()
            # Skip empty lines, comments, and .line directives
            if not stripped or stripped.startswith("#"):
                continue
            if _LINE_RE.match(stripped):
                continue
            lines.append(stripped)
        return "\n".join(lines)

    @staticmethod
    def count_instructions(body: str) -> int:
        """Count actual Dalvik instructions (skip directives, labels, blanks)."""
        count = 0
        for line in body.split("\n"):
            stripped = line.strip()
            if not stripped:
                continue
            if _DIRECTIVE_RE.match(stripped):
                continue
            if _LABEL_RE.match(stripped):
                continue
            if _BLANK_OR_COMMENT_RE.match(stripped):
                continue
            count += 1
        return count

    @staticmethod
    def _extract_register_count(body: str) -> int:
        """Extract register count from .registers or .locals directive.

        apktool outputs .locals (local registers only) by default.
        .registers (total = locals + params) is used with --use-registers.
        We return whichever is present.
        """
        for line in body.split("\n"):
            stripped = line.strip()
            m = _REGISTERS_RE.match(stripped)
            if m:
                return int(m.group(1))
            m = _LOCALS_RE.match(stripped)
            if m:
                return int(m.group(1))
        return 0

    @staticmethod
    def _parse_method_sig(header_line: str) -> tuple:
        """Parse method name and signature from .method header line.

        Input: '.method public onCreate(Landroid/os/Bundle;)V'
        Returns: ('onCreate', '(Landroid/os/Bundle;)V')
        """
        remainder = header_line[len(".method "):].strip()
        tokens = remainder.split()
        if not tokens:
            return ("unknown", "()")

        # Last token contains methodName(params)returnType
        method_part = tokens[-1]

        paren_idx = method_part.find("(")
        if paren_idx == -1:
            return (method_part, "()")

        method_name = method_part[:paren_idx]
        signature = method_part[paren_idx:]

        return (method_name, signature)

    @staticmethod
    def make_method_key(class_name: str, method_name: str, signature: str) -> str:
        """Build a canonical method key for cross-tool matching.

        Format: 'Lcom/example/Foo;->methodName(params)ReturnType'
        """
        return f"{class_name}->{method_name}{signature}"